aboutsummaryrefslogtreecommitdiffstats
path: root/src/object.js
blob: ecf43ee90cda69b9b97c637518d2490ce534eac0 (plain)
1
2
3
4
5
6
7
8
9
10
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;
};