Skip to content

Instantly share code, notes, and snippets.

@austinbv
Created August 1, 2011 02:42
Show Gist options
  • Save austinbv/1117493 to your computer and use it in GitHub Desktop.
Save austinbv/1117493 to your computer and use it in GitHub Desktop.
(function() {
var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
(function($) {
if ($ == null) {
$ = jQuery;
}
return $.fn.canvasize = __bind(function() {
return console.log(this);
}, this);
})($);
}).call(this);
// Run it with
$(document).ready(function() {
$("#drawn").canvasize()
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment