Created
March 6, 2012 13:49
-
-
Save anonymous/1986367 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.e = function(e,cb){ | |
var that=this,resolvedCb=function(event){cb.call(that,event)}; | |
if(window.addEventListener){ // ALL | |
this.bj.addEventListener(e,resolvedCb,false); | |
} | |
else if(window.attachEvent){ // IE | |
this.bj.attachEvent(e,resolvedCb); | |
} | |
return this; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment