File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 258
258
}
259
259
snippets . forEach ( function ( snippet ) {
260
260
var result = snippet ,
261
- isSortBy = / v a r s o r t B y \b / . test ( result ) ;
261
+ isSortBy = / v a r s o r t B y \b / . test ( result ) ,
262
+ isInlined = ! / \b c r e a t e I t e r a t o r \b / . test ( result ) ;
262
263
263
264
// minify properties
264
265
properties . forEach ( function ( property , index ) {
265
- // add quotes around properties in the inlined method of the mobile build
266
- // so Closure Compiler won't mung them
267
- if ( isSortBy ) {
266
+ // add quotes around properties in the inlined `sortBy` of the mobile
267
+ // build so Closure Compiler won't mung them
268
+ if ( isSortBy && isInlined ) {
268
269
result = result
269
270
. replace ( RegExp ( '\\.' + property + '\\b' , 'g' ) , "['" + minNames [ index ] + "']" )
270
271
. replace ( RegExp ( '\\b' + property + ' *:' , 'g' ) , "'" + minNames [ index ] + "':" ) ;
You can’t perform that action at this time.
0 commit comments