Fix browser compatibilities by adding some polyfills
Chrome doesn't support Array.concat so we must use the instance method. review1108003
This commit is contained in:
1 parent
6165a6ef9b
commit
0a792903dc
2 files changed
+33
-2
No files matched your search
+2
-2
@@ -1340,12 +1340,12 @@
|
||||
if (this.is_leaf(domain)) {
|
||||
return [domain];
|
||||
} else if (domoperator === undefined) {
|
||||
return [domain_type].concat(Array.concat.apply([],
|
||||
return [domain_type].concat([].concat.apply([],
|
||||
domain.map(function(e) {
|
||||
return this.merge(e, domain_type);
|
||||
}.bind(this))));
|
||||
} else if (domain_type == domoperator) {
|
||||
return Array.concat.apply([], domain.map(function(e) {
|
||||
return [].concat.apply([], domain.map(function(e) {
|
||||
return this.merge(e, domain_type);
|
||||
}.bind(this)));
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user