Skip to content

Commit 230818f

Browse files
committed
Remove classList polyfill.
1 parent 2c3f64f commit 230818f

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/lib/elementprototype.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,6 @@ if (!Element.prototype.insertAdjacentHTML)
2424
}
2525
}
2626

27-
if (!document.createElement('div').classList)
28-
{
29-
Element.prototype.__defineGetter__('classList', function()
30-
{
31-
return this.className.split(/\s+/);
32-
});
33-
Element.prototype.__defineSetter__('classList', function(){});
34-
}
35-
3627
/**
3728
* @fileoverview
3829
* Helper function prototypes related to DOM objects and the DOM

0 commit comments

Comments
 (0)