Skip to content

Instantly share code, notes, and snippets.

@sorrycc
Created March 19, 2012 05:51
Show Gist options
  • Save sorrycc/2097673 to your computer and use it in GitHub Desktop.
Save sorrycc/2097673 to your computer and use it in GitHub Desktop.
fp2012_module structure
/**
* @fileOverview 本地生活模块.
* @author 云谦 <[email protected]>
*/
KISSY.add('fp/local/local', function(S, Module, util, DOM) {
function Local() {
Local.superclass.constructor.apply(this, arguments);
this.init();
}
S.extend(Local, Module, {
el: {},
events: {},
init: function() {
alert(1);
}
});
return Local;
}, {
requires: [
'fp/module',
'fp/util',
'dom'
]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment