aboutsummaryrefslogtreecommitdiff
path: root/js/lib/NJUtils.js
diff options
context:
space:
mode:
authorValerio Virgillito2012-07-23 17:05:45 -0700
committerValerio Virgillito2012-07-23 17:05:45 -0700
commit8c411448bc595a5bebd75382ea2cff31fc045151 (patch)
treec562833ca26e01a3c9a8d1f301d7dfe988ae2efa /js/lib/NJUtils.js
parentf16744e7a48a89fb7b951ac05e4e1711a07c61ac (diff)
parentfb6b9cb1f7ee29bb2e8d7178479717f650d0b7b5 (diff)
downloadninja-8c411448bc595a5bebd75382ea2cff31fc045151.tar.gz
Merge branch 'DOM-Manipulation' of https://github.com/joseeight/ninja into v0.7.1
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