mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-01-12 22:45:52 +08:00
refactor(indexOf) Remove a now unused copy of the indexOf function
This was missed in 300bffc4fe
Closes #8939
This commit is contained in:
committed by
Peter Bacon Darwin
parent
c3a58a9f34
commit
3471fedfbc
@@ -25,13 +25,6 @@ beforeEach(function() {
|
||||
};
|
||||
}
|
||||
|
||||
function indexOf(array, obj) {
|
||||
for ( var i = 0; i < array.length; i++) {
|
||||
if (obj === array[i]) return i;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
function isNgElementHidden(element) {
|
||||
// we need to check element.getAttribute for SVG nodes
|
||||
var hidden = true;
|
||||
|
||||
Reference in New Issue
Block a user