Skip to content

Commit c77c31a

Browse files
committed
Merge pull request #340 from fenque/fix-nightly
Fixes #340
2 parents 19fcdc7 + 8553d01 commit c77c31a

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

common/content/util.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ const Util = Module("util", {
827827
return {
828828
__proto__: ary,
829829
__iterator__: function () this.iteritems(),
830-
__noSuchMethod__: function (meth, args) {
830+
mapImpl: function (meth, args) {
831831
var res = util.Array[meth].apply(null, [this.__proto__].concat(args));
832832

833833
if (util.Array.isinstance(res))
@@ -836,7 +836,8 @@ const Util = Module("util", {
836836
},
837837
toString: function () this.__proto__.toString(),
838838
concat: function () this.__proto__.concat.apply(this.__proto__, arguments),
839-
map: function () this.__noSuchMethod__("map", Array.slice(arguments))
839+
map: function () this.mapImpl("map", Array.slice(arguments)),
840+
flatten: function () this.mapImpl("flatten", arguments)
840841
};
841842
}
842843
}, {

common/modules/template-tag.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,9 @@ function templateXML(portion, ...args) // {{{
178178
break;
179179
case ATTR2:
180180
whiteSpace.lastIndex = offset;
181-
whiteSpace.exec(str);
182-
offset = whiteSpace.lastIndex;
181+
if (whiteSpace.exec(str)) {
182+
offset = whiteSpace.lastIndex;
183+
}
183184
close = str[offset++];
184185
if (!close) {
185186
if (i >= j) throw SyntaxError("attr right");

vimperator/content/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// This work is licensed for reuse under an MIT license. Details are
66
// given in the License.txt file included with this file.
77

8-
const Config = Module("config", ConfigBase, {
8+
var Config = Module("config", ConfigBase, {
99
init: function () {
1010
// TODO: delete me when minversion is greater than 34
1111
var {isSupport} = Cu.import("resource://liberator/CheckTemplate.jsm", {});

0 commit comments

Comments
 (0)