Created
February 17, 2012 11:21
-
-
Save DimitarChristoff/1852772 to your computer and use it in GitHub Desktop.
Element.Events.outerClick
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
Element.Events.outerClick = Element.Events.outerClick || { | |
base : 'click', | |
condition : function(event){ | |
event.stopPropagation(); | |
return false; | |
}, | |
onAdd : function(fn){ | |
this.getDocument().addEvent('click', fn); | |
}, | |
onRemove : function(fn){ | |
this.getDocument().removeEvent('click', fn); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment