Skip to content

Commit e537801

Browse files
author
Beau Gunderson
committed
Remove shims for obsolete browsers, fixes #98
Users wishing to support older browsers (like IE 8, for example) will need to shim `Array.isArray` and `Array.prototype.filter` themselves.
1 parent 33a5cda commit e537801

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

lib/director/browser.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,6 @@
66
*
77
*/
88

9-
if (!Array.prototype.filter) {
10-
Array.prototype.filter = function(filter, that) {
11-
var other = [], v;
12-
for (var i = 0, n = this.length; i < n; i++) {
13-
if (i in this && filter.call(that, v = this[i], i, this)) {
14-
other.push(v);
15-
}
16-
}
17-
return other;
18-
};
19-
}
20-
21-
if (!Array.isArray){
22-
Array.isArray = function(obj) {
23-
return Object.prototype.toString.call(obj) === '[object Array]';
24-
};
25-
}
26-
279
var dloc = document.location;
2810

2911
function dlocHashEmpty() {

0 commit comments

Comments
 (0)