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