Skip to content
This repository was archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
cannot pop elements from array on 'for in'
Browse files Browse the repository at this point in the history
  • Loading branch information
josmardias committed Mar 26, 2015
1 parent 7524d1c commit 81a67ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,12 @@ var Integration = (function () {
delete _restoreObj.bodyProp[i];
}

for (i in _restoreObj.elementClass) {
while (_restoreObj.elementClass.length > 0) {
elementClass = _restoreObj.elementClass.pop();
this.elementRemoveClass(elementClass.el, elementClass.className);
}

for (i in _restoreObj.eventListener) {
while (_restoreObj.eventListener.length > 0) {
listener = _restoreObj.eventListener.pop();
if (listener.el.removeEventListener) {
listener.el.removeEventListener(listener.eventName, listener.callback);
Expand Down

0 comments on commit 81a67ba

Please sign in to comment.