File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -827,7 +827,7 @@ const Util = Module("util", {
827
827
return {
828
828
__proto__ : ary ,
829
829
__iterator__ : function ( ) this . iteritems ( ) ,
830
- __noSuchMethod__ : function ( meth , args ) {
830
+ mapImpl : function ( meth , args ) {
831
831
var res = util . Array [ meth ] . apply ( null , [ this . __proto__ ] . concat ( args ) ) ;
832
832
833
833
if ( util . Array . isinstance ( res ) )
@@ -836,7 +836,8 @@ const Util = Module("util", {
836
836
} ,
837
837
toString : function ( ) this . __proto__ . toString ( ) ,
838
838
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 )
840
841
} ;
841
842
}
842
843
} , {
Original file line number Diff line number Diff line change @@ -178,8 +178,9 @@ function templateXML(portion, ...args) // {{{
178
178
break ;
179
179
case ATTR2 :
180
180
whiteSpace . lastIndex = offset ;
181
- whiteSpace . exec ( str ) ;
182
- offset = whiteSpace . lastIndex ;
181
+ if ( whiteSpace . exec ( str ) ) {
182
+ offset = whiteSpace . lastIndex ;
183
+ }
183
184
close = str [ offset ++ ] ;
184
185
if ( ! close ) {
185
186
if ( i >= j ) throw SyntaxError ( "attr right" ) ;
Original file line number Diff line number Diff line change 5
5
// This work is licensed for reuse under an MIT license. Details are
6
6
// given in the License.txt file included with this file.
7
7
8
- const Config = Module ( "config" , ConfigBase , {
8
+ var Config = Module ( "config" , ConfigBase , {
9
9
init : function ( ) {
10
10
// TODO: delete me when minversion is greater than 34
11
11
var { isSupport} = Cu . import ( "resource://liberator/CheckTemplate.jsm" , { } ) ;
You can’t perform that action at this time.
0 commit comments