Skip to content

Instantly share code, notes, and snippets.

@rodrigo-x
Created October 15, 2012 00:17
Show Gist options
  • Save rodrigo-x/3890249 to your computer and use it in GitHub Desktop.
Save rodrigo-x/3890249 to your computer and use it in GitHub Desktop.
snippet - load no ext...
Ext = {}
Ext.load = function(opt){
try{
self = $(opt);
self.click(function(){
self.addClass('feio');
alert('oi');
});
}catch(e){
self.append(e.message);
}
};
window.onload = function(){
Ext.load('.teste');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment