Created
February 5, 2010 02:36
-
-
Save hoganlong/295432 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var utilities = function() { | |
var util = this; | |
util.log = function(msg){ | |
alert(msg); | |
}; | |
var p = document.createElement('p'); | |
p.innerHTML = '<input type="checkbox" onclick="util.log(\'hey\')" value="1">Check me'; // this part is a legacy code and I have no control over to rewrite it as HTMLObjectElement way | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment