moldy/moldy — pull request #4 by dervalp (2014-04-15 12:34:24+00:00)
Title: replace new operator by create Method

So, I have change the code to use a create method.

I did it the change iterative. I wanted to change a lots of things :) but I just did the smallest change possible in order to have a create method.

As you can see this can cause a problem about the instanceof operator as seen in the test/get.js line 42.

At then, I still think the create method is more accurate then using the "new" operator.

But we could also take the Ember approach, which is calling an "extend" method and after using the "new". The new here would make more sense then the current use.

http://emberjs.com/guides/object-model/classes-and-instances/