diff options
Diffstat (limited to 'src/object.js')
-rw-r--r-- | src/object.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/object.js b/src/object.js index e69de29..ecf43ee 100644 --- a/src/object.js +++ b/src/object.js @@ -0,0 +1,11 @@ + +Object.prototype.include = function(module) { + + for (var key in module) + this.prototype[key] = module[key]; + + if (module.included != null) + module.included.apply(this); + + return this; +};
\ No newline at end of file |