ebryn/ember-model — pull request #187 by petejkim (2013-07-28 23:48:31+00:00)
Title: Moved internal attributes and relationships array to object constructor (class vars)

Previous implementation involving placing of said arrays in object prototype and using slice() was inefficient because the code repeatedly initialized a new array each time an attribute or a relationship is defined.

Also added Model.getAttributes() and Model.getRelationships() methods.