Sha256: df92f66af4684cc483df6f7840f9845787d854f3cd607ed446a8a7af5b684892

Contents?: true

Size: 669 Bytes

Versions: 2

Compression:

Stored size: 669 Bytes

Contents

// EvoJS - Core - Copyright (c) TJ Holowaychuk <tj@vision-media.ca>

(function(){
  
  this.Evo = { version : '0.0.1' }
  
  /**
   * Merge methods and properties of _other_.
   *
   * @param  {hash} other
   * @return {mixed} this
   * @api public
   */
  
  Object.prototype.extend = function(other) {
    for (key in other)
      if (other.hasOwnProperty(key))
        this[key] = other[key]
    return this
  }
  
  /**
   * Merge prototype with methods and properties with _mixin_.
   *
   * @param  {hash} mixin
   * @return {mixed} this
   * @api public
   */
  
  Object.prototype.include = function(mixin) {
    return this.prototype.extend(mixin)
  }
  
})()

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
visionmedia-jspec-1.1.1 templates/default/lib/yourlib.core.js
visionmedia-jspec-1.1.3 templates/default/lib/yourlib.core.js