Skip to content

Instantly share code, notes, and snippets.

@jdlich
Created August 10, 2011 21:56
Show Gist options
  • Save jdlich/1138382 to your computer and use it in GitHub Desktop.
Save jdlich/1138382 to your computer and use it in GitHub Desktop.
fluid component bones
var up = up || {};
(function($, fluid){
var someFunction = function () {
// do stuff
}
up.myFunction = function (container, options) {
var that = fluid.initView("up.myFunction", container, options);
someFunction();
return that;
}
fluid.defaults("up.myFunction", {});
})(jQuery, fluid);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment