lundi 30 mars 2015

How to get the prototype for a given key using container.lookupFactory

I have a simple key like "model:person" that I'm using to lookup like so



var factory = this.container.lookupFactory("model:person");


...and although this does allow me to "create" I need a quick/easy way to get the prototype for the given object so I can use it like so.


example:



App.Person.prototype.hasOwnProperty("...");




Aucun commentaire:

Enregistrer un commentaire