Commit 1fdef4fc authored by miripiruni's avatar miripiruni

simplified shower._isNumber

parent f36d5470
......@@ -75,11 +75,7 @@ window.shower = (function(window, document, undefined) {
* @returns {Boolean}
*/
shower._isNumber = function(arg) {
if ( ! ( ! isNaN(parseFloat(arg)) && isFinite(arg))) {
return false;
}
return true;
return ( ! isNaN(parseFloat(arg)) && isFinite(arg));
};
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment