vendredi 9 octobre 2015

Different ways of setting properties in Ember

What is the difference between:

myObject.set('some_property', 'myvalue');

and

Ember.set(myObject,'some_property', 'myvalue');

I am using the first syntax, but I noticed, that many people use the second one with Ember.set(). So what is the difference here?

Aucun commentaire:

Enregistrer un commentaire