Skip to content

Instantly share code, notes, and snippets.

@wojciak
Last active December 27, 2015 10:09
Show Gist options
  • Save wojciak/7308713 to your computer and use it in GitHub Desktop.
Save wojciak/7308713 to your computer and use it in GitHub Desktop.
LithiumJS module definition
/*global _li*/
(function (module) {
'use strict';
var moduleName = module.get('name'),
init;
init = function () {
module.publish(moduleName + '.events'); // fire other exposed module
};
module.subscribe(moduleName, 'main', init); // expose module
}(_li.define('fudge'))); // module name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment