simplified shower._isNumber

This commit is contained in:
miripiruni 2013-01-20 03:11:45 +04:00
parent f36d547070
commit 1fdef4fc5b
1 changed files with 1 additions and 5 deletions

View File

@ -75,11 +75,7 @@ window.shower = (function(window, document, undefined) {
* @returns {Boolean} * @returns {Boolean}
*/ */
shower._isNumber = function(arg) { shower._isNumber = function(arg) {
if ( ! ( ! isNaN(parseFloat(arg)) && isFinite(arg))) { return ( ! isNaN(parseFloat(arg)) && isFinite(arg));
return false;
}
return true;
}; };
/** /**