aboutsummaryrefslogtreecommitdiff
path: root/js/lib/NJUtils.js
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-07-23 17:15:47 -0700
committerJose Antonio Marquez2012-07-23 17:15:47 -0700
commit6908422084dbfef5420e1a9ce584d56aad9a2c14 (patch)
treec5e74cc54e1d4d38ee08378998ce1c93453489b3 /js/lib/NJUtils.js
parentafc7ad4f240fdf7890a79c2d4d7f8eb2e7c30a34 (diff)
parenta3f04ac0a68e428017dc51a1ba28c33f250adaf6 (diff)
downloadninja-6908422084dbfef5420e1a9ce584d56aad9a2c14.tar.gz
Merge branch 'refs/heads/Ninja-Master' into Document
Diffstat (limited to 'js/lib/NJUtils.js')
-rwxr-xr-xjs/lib/NJUtils.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/lib/NJUtils.js b/js/lib/NJUtils.js
index cfb7ef07..bca9b05b 100755
--- a/js/lib/NJUtils.js
+++ b/js/lib/NJUtils.js
@@ -241,6 +241,7 @@ exports.NJUtils = Montage.create(Component, {
241 // 100px will return the following array: [100, px] 241 // 100px will return the following array: [100, px]
242 getValueAndUnits: { 242 getValueAndUnits: {
243 value: function(input) { 243 value: function(input) {
244 if (!input) return [null, null];
244 var numberValue = parseFloat(input); 245 var numberValue = parseFloat(input);
245 246
246 // Ignore all whitespace, digits, negative sign and "." when looking for units label 247 // Ignore all whitespace, digits, negative sign and "." when looking for units label