aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/scripts/helpers.js
diff options
context:
space:
mode:
authorAdrian Lang <lang@cosmocode.de>2010-02-02 16:20:17 +0100
committerAdrian Lang <lang@cosmocode.de>2010-03-29 11:44:22 +0200
commitcd12dcad1a482ea805f8dcc58b364e9c6cddc667 (patch)
treee1aa29fa7d6dd29064abbdbd7efc63be448cf4bc /lib/scripts/helpers.js
parent569a001959f65aea2c0e7cd3dd5b541cac0e9e58 (diff)
downloaddokuwiki-cd12dcad1a482ea805f8dcc58b364e9c6cddc667.tar.gz
dokuwiki-cd12dcad1a482ea805f8dcc58b364e9c6cddc667.zip
JavaScript syntax fixes
Diffstat (limited to 'lib/scripts/helpers.js')
-rw-r--r--lib/scripts/helpers.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/scripts/helpers.js b/lib/scripts/helpers.js
index 8d4f3ea78..129964d29 100644
--- a/lib/scripts/helpers.js
+++ b/lib/scripts/helpers.js
@@ -109,7 +109,7 @@ function isEmpty (prop /* :Object */) /* :Boolean */ {
if (isRegExp(prop) && new RegExp("").toString() == prop.toString()) return true;
if (isString(prop) || isNumber(prop)) return !prop;
if (Boolean(prop)&&false != prop) {
- for (var i in prop) if(prop.hasOwnProperty(i)) return false
+ for (var i in prop) if(prop.hasOwnProperty(i)) return false;
}
return true;
}
@@ -124,7 +124,7 @@ function isEmpty (prop /* :Object */) /* :Boolean */ {
if ('undefined' == typeof Object.hasOwnProperty) {
Object.prototype.hasOwnProperty = function (prop) {
return !('undefined' == typeof this[prop] || this.constructor && this.constructor.prototype[prop] && this[prop] === this.constructor.prototype[prop]);
- }
+ };
}
/**