Merge pull request #2410 from redbmk/master
IE8 does not support Array.prototype.forEach #2339
This commit is contained in:
commit
a29dfc2e2a
@ -633,7 +633,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|||||||
function cleanupJQueryElements() {
|
function cleanupJQueryElements() {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
Array.prototype.forEach.call(arguments, function (element) {
|
$.each(arguments, function (i, element) {
|
||||||
self[element].remove();
|
self[element].remove();
|
||||||
self[element] = null;
|
self[element] = null;
|
||||||
});
|
});
|
||||||
@ -1111,7 +1111,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|||||||
if (observer !== undefined) {
|
if (observer !== undefined) {
|
||||||
if (this.propertyObserver) { delete this.propertyObserver; this.propertyObserver = null; }
|
if (this.propertyObserver) { delete this.propertyObserver; this.propertyObserver = null; }
|
||||||
this.propertyObserver = new observer(function (mutations) {
|
this.propertyObserver = new observer(function (mutations) {
|
||||||
mutations.forEach(self._sync);
|
$.each(mutations, self._sync);
|
||||||
});
|
});
|
||||||
this.propertyObserver.observe(el.get(0), { attributes:true, subtree:false });
|
this.propertyObserver.observe(el.get(0), { attributes:true, subtree:false });
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user