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:
Cédric Krier committed 2013-10-07 12:22:39 +02:00
1 parent 6165a6ef9b
commit 0a792903dc
2 files changed
+33 -2

No files matched your search

+2 -2
View File
@@ -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 {