Permalink
Browse files

Merge pull request #1 from Daniel15/patch-1

Replace immediately invoked function expression with a boolean coercion
  • Loading branch information...
2 parents aec0934 + e60bc6b commit 502ec20b4d42ed16df3147d9732eb5c76e94b92d @Integralist committed Feb 9, 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 502ec20

Please sign in to comment.