Permalink
Browse files

Anonymous function for supportAEL isn't required

  • Loading branch information...
1 parent aec0934 commit e60bc6bfcd13eb4063ae40610bdf0ea0e0f49cdb @Daniel15 committed Feb 8, 2012
Showing with 1 addition and 7 deletions.
  1. +1 −7 Assets/Scripts/DOMready.js
@@ -4,13 +4,7 @@ var DOMready = (function() {
var win = window,
doc = win.document,
dce = doc.createElement,
- supportAEL = (function(){
- if (doc.addEventListener) {
- return true;
- } else {
- return false;
- }
- }()),
+ supportAEL = !!doc.addEventListener,
queue = [],
exec,
loaded,

0 comments on commit e60bc6b

Please sign in to comment.