vic's thinkery

Gist : Self-init a jQuery Mobile plugin

Gist : Self-init a jQuery Mobile plugin

phonegap jquerymobile Mar 23, 2012
// First, let's define a widget/plugin called "foo"

// Either using jQuery's $.fn plugin namespace, for simple stateless plugins...
$ = function(){

// In this scope, this refers to the element on which the plugin foo() was called
// manipulate it and return this at the end, so it can be chainable


// note: read more about simple

Additional text has been truncated due to copyright reasons. Things without URLs and private things don't get truncated.