sproutcore/sproutcore — pull request #1127 by mirion (2013-11-22 00:03:25+00:00)
Title: Fix SC.Record.normalize: accept record attributes based on classes extending SC.RecordAttribute

When using custom types of RecordAttributes the normalize method was ignoring them (using SC.instanceOf rather than SC.kindOf ) so the transform using fromType was not executed, therefore the data into the hash was invalid (not the expected type).

Also remove a developer warning produced by the primary key being at the beginning stored into the hash and eventually removed if the record is new. Initially, in the first commit, I preserved the rowKey into the hash as it was set at the beginning of normalize, but arrived at the conclusion that storing it into the record hash is really bad practice, therefore I removed it completely.