lib/super-prop.js
function create(scope, Type) {

  // make result the constructor
  var result = function() {
    Type.apply(scope, arguments);
  };

  // attach methods to result
  for(var key in Type.prototype) {
    if(typeof Type.prototype[key] === 'function') {
      result[key] = Type.prototype[key].bind(scope);
    }
  }

  return result;
}
function create(scope, Type) {

  // make result the constructor
  var result = function() {
    Type.apply(scope, arguments);
  };

  // attach methods to result
  for(var key in Type.prototype) {
    if(typeof Type.prototype[key] === 'function') {
      result[key] = Type.prototype[key].bind(scope);
    }
  }

  return result;
}
function create ( scope , Type ) { // make result the constructor var result = function ( ) { Type . apply ( scope , arguments ) ; } ; // attach methods to result for ( var key in Type . prototype ) { if ( typeof Type . prototype [ key ] === 'function' ) { result [ key ] = Type . prototype [ key ] . bind ( scope ) ; } } return result ; }
Creates an object containing methods
of the specificed proptotype that will be
bound to the supplied scope. This function
also creates a constructor property that is
a function call for the supplied prototype

@api public
@param {Object} scope - the instance to
bind methos to
@param {Function} Type - the prototype
of the super Type
Creates an object containing methods of the specificed proptotype that will be bound to the supplied scope . This function also creates a constructor property that is a function call for the supplied prototype