Updated.

On Apr 4, 2013, at 2:22 PM, Gary Katsevman <notifications@github.com> wrote:

> In src/js/lib.js:
> 
> > @@ -47,6 +47,25 @@ vjs.obj.toString = Object.prototype.toString;
> >  vjs.obj.hasOwnProperty = Object.prototype.hasOwnProperty;
> >  
> >  /**
> > + * Object.create shim for prototypal inheritance.
> > + * https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/create
> > + * Not seeing a benfit of checking if a native Object.create already exists
> > + * so using this code always for consistency with older browsers.
> > + * @param  {Object}   obj Object to use as prototype
> > + */
> > +vjs.obj.create = function(obj){
> Looks like it can be faster http://jsperf.com/object-create-vs-manual-inheritance, so, it might be worth it.
> vjs.obj.create = Object.create || function(obj) {
> 
> —
> Reply to this email directly or view it on GitHub.
>