emberjs/data — pull request #1888 by dioptre (2014-04-23 03:11:25+00:00)
Title: fixed extractArray after findQuery

Storing the primaryType.typeKey (primaryTypeName) early stores the key uncapitalised. Ie in my app stores 'node' - when it should be 'Node'. This changes after the calls after line 514 (scary), so storing the reference updates the string to 'Node' as expected and evaluates correctly.

Keeping a consistent type/naming system across the whole app ie node is class,type, etc. would be my 2c. Otherwise removing sometimes camel cased sometimes capitalised references altogether and replacing all references tolower might stop these errors from occurring.