Skip to content

Instantly share code, notes, and snippets.

@fscz
Created March 5, 2013 10:06
Show Gist options
  • Save fscz/5089241 to your computer and use it in GitHub Desktop.
Save fscz/5089241 to your computer and use it in GitHub Desktop.
define(
function() {
function mixin() {
var __config__ = {};
this.setConfig = function(cfg) {
__config__ = cfg;
}
}
return mixin;
}
);
define(
[
'component',
'mixin'
], function(defineComponent) {
function myComponent() {
this.setConfig({});
}
return defineComponent(myComponent, mixin);
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment