Skip to content

Instantly share code, notes, and snippets.

@Raynos
Created February 13, 2012 13:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Raynos/1817026 to your computer and use it in GitHub Desktop.
Save Raynos/1817026 to your computer and use it in GitHub Desktop.
var Core = {
...
constructor: function() {
...
Methods.constructor.call(this);
Modules.constructor.call(this);
}
};
var Methods = {
...
};
var Modules = {
...
};
module.exports = pd.extend(Core, Methods, Modules, {
constructor: Core.constructor
});
var Core = {
...
constructor: function () {
...
}
};
var Methods = {
...
};
var Modules = {
...
};
module.exports = pd.mixin(Core, Methods, Modules);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment