Skip to content

Instantly share code, notes, and snippets.

@ikenfin
Created May 23, 2016 09:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ikenfin/d4bdb70555ef5f7de9931b65fa543775 to your computer and use it in GitHub Desktop.
Save ikenfin/d4bdb70555ef5f7de9931b65fa543775 to your computer and use it in GitHub Desktop.
Jquery compatible SirTrevor block
/*
JQCBlock - jquery compatible sir trevor block (old style)
it may be usefull for legacy jquery dependent code
*/
SirTrevor.JQCompatibleBlock = SirTrevor.Block.extend({
$ : function(selector) {
return $(this.el).find(selector);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment