Created
April 20, 2010 23:23
-
-
Save danielcbaldwin/373204 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
/** | |
* Sample jQuery Plugin | |
*/ | |
(function($) { | |
function Sample() {}; | |
$.extend(Sample.prototype, { | |
settings: { | |
base_url: '' | |
}, | |
init: function() { | |
this.sampleFunction(); | |
}, | |
sampleFunction: function() { | |
/* Sample Function Code */ | |
} | |
}); | |
//Plugin End | |
/** | |
* Event Handlers | |
*/ | |
$(document).ready(function() { | |
if ($.sample == undefined) { | |
$.sample = new Sample(); | |
} | |
$.sample.init(); | |
}); | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment