diff options
author | Doug Kearns <dougkearns@gmail.com> | 2009-08-21 01:39:43 +1000 |
---|---|---|
committer | Doug Kearns <dougkearns@gmail.com> | 2009-08-21 23:57:40 +1000 |
commit | 7e7e68e1eb7513a582b2e2621d81f942d8c010e7 (patch) | |
tree | b5407faa847556eac1011a9d67212ce1171a31a5 /common/content/util.js | |
parent | 9909a85757085a685a98ec2be6bb25de124346a1 (diff) | |
download | pentadactyl-7e7e68e1eb7513a582b2e2621d81f942d8c010e7.tar.gz |
Formatting fixes.
Diffstat (limited to 'common/content/util.js')
-rw-r--r-- | common/content/util.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/common/content/util.js b/common/content/util.js index 64c884f1..ff271b86 100644 --- a/common/content/util.js +++ b/common/content/util.js @@ -160,9 +160,9 @@ const util = { //{{{ return delimiter + str.replace(/([\\'"])/g, "\\$1").replace("\n", "\\n", "g").replace("\t", "\\t", "g") + delimiter; }, - extend: function extend(dest) { - Array.slice(arguments, 1).filter(util.identity).forEach(function (src) - { + extend: function extend(dest) + { + Array.slice(arguments, 1).filter(util.identity).forEach(function (src) { for (let [k, v] in Iterator(src)) { let get = src.__lookupGetter__(k), @@ -735,7 +735,8 @@ util.Array = function Array_(ary) { var obj = { __proto__: ary, __iterator__: function () this.iteritems(), - __noSuchMethod__: function (meth, args) { + __noSuchMethod__: function (meth, args) + { let res = (util.Array[meth] || Array[meth]).apply(null, [this.__proto__].concat(args)); if (util.Array.isinstance(res)) return util.Array(res); |