Created
April 1, 2010 21:00
-
-
Save bmavity/352356 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
ioc('parent', function(component, parentElement){ | |
parentElement.click(function() { | |
component.parentClicked(); | |
}); | |
}); | |
ioc('component', function(componentElement) { | |
componentElement.click(function() { | |
alert('component clicked'); | |
}); | |
this.parentClicked = function() { | |
alert('parent clicked'); | |
}; | |
}); | |
ioc('parent'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Still tweaking the usage. had some inspiration this weekend ;)