Replace filter with a for loop.

This commit is contained in:
larissasmith 2017-07-10 13:54:20 -06:00
parent fd15789f6f
commit c3a65bab38

View File

@ -325,10 +325,15 @@
*/ */
getActivePointersListExceptType: function ( type ) { getActivePointersListExceptType: function ( type ) {
var delegate = THIS[ this.hash ]; var delegate = THIS[ this.hash ];
var listArray = [];
return delegate.activePointersLists.filter(function(pointersList) { for (var i = 0; i < delegate.activePointersLists.length; ++i) {
return pointersList.type !== type; if (delegate.activePointersLists[i].type !== type) {
}); listArray.push(delegate.activePointersLists[i]);
}
}
return listArray;
}, },
/** /**