haybale
decorate an object prototype with the methods of an object
use
var decorate = ; // model prototypevar model = name: "hello" // object with methodsvar obj = { console; } { console; }; ; model; model;
api
haybale exposes a single function
decorate(fn, obj)
params
model
: the object prototype to be decorated
obj
: the object with which to decorate the model