spolu/node-dynamodb — Issue #17: fwk's Function.prototype declarations
Author: sansmischevia
Created: 2012-02-02 00:32:25+00:00
State: open

fwk overrides the prototype for several things that aren't very node friendly. For example this bind:
/**
* bind()
* The .bind method from Prototype.js
*/
Function.prototype.bind = function() {
var fn = this,
args = Array.prototype.slice.call(arguments),
object = args.shift();
return function(){
return fn.apply(
object,
args.concat(Array.prototype.slice.call(arguments))
);
};
};

Breaks several models that are expecting their own implementations of bind. I can provide other details, but this is a dangerous library to include. (breaks node-aws library)