X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=resources%2Fjquery%2Fjquery.mwExtension.js;h=de399788a516b68059694a582f6fbb18f9d98fa0;hb=4ae77e4722f2f2ef5446b3dc470046190ba4d4e5;hp=bbffd7b7df4db3a8c1af0831fceb91979b7365f3;hpb=8634014e86135d162595dd7d9f3a03a02f6fbb72;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/jquery/jquery.mwExtension.js b/resources/jquery/jquery.mwExtension.js index bbffd7b7df..de399788a5 100644 --- a/resources/jquery/jquery.mwExtension.js +++ b/resources/jquery/jquery.mwExtension.js @@ -15,12 +15,13 @@ return str.charAt( 0 ).toUpperCase() + str.substr( 1 ); }, escapeRE: function ( str ) { - return str.replace ( /([\\{}()|.?*+\-\^$\[\]])/g, "\\$1" ); + return str.replace ( /([\\{}()|.?*+\-\^$\[\]])/g, '\\$1' ); }, isDomElement: function ( el ) { return !!el && !!el.nodeType; }, isEmpty: function ( v ) { + var key; if ( v === '' || v === 0 || v === '0' || v === null || v === false || v === undefined ) { @@ -32,7 +33,7 @@ return true; } if ( typeof v === 'object' ) { - for ( var key in v ) { + for ( key in v ) { return false; } return true;