diff --git a/src/mousetracker.js b/src/mousetracker.js index 76518f87..2db54b42 100644 --- a/src/mousetracker.js +++ b/src/mousetracker.js @@ -325,10 +325,15 @@ */ getActivePointersListExceptType: function ( type ) { var delegate = THIS[ this.hash ]; + var listArray = []; - return delegate.activePointersLists.filter(function(pointersList) { - return pointersList.type !== type; - }); + for (var i = 0; i < delegate.activePointersLists.length; ++i) { + if (delegate.activePointersLists[i].type !== type) { + listArray.push(delegate.activePointersLists[i]); + } + } + + return listArray; }, /**