mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-29 00:26:10 +03:00
Replace filter with a for loop.
This commit is contained in:
parent
fd15789f6f
commit
c3a65bab38
@ -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;
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user