public
Created

  • Download Gist
extend
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
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
});
mixin
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
var Core = {
...
constructor: function () {
...
}
};
 
var Methods = {
...
};
 
var Modules = {
...
};
 
module.exports = pd.mixin(Core, Methods, Modules);

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.