emberjs-addons / sproutcore-datastore

(Ember Only) Repository for the DataStore package
www.sproutcore.com
46 stars 9 forks source link

SC.Record.refresh does not work #11

Open blt04 opened 12 years ago

blt04 commented 12 years ago

Calling refresh on a SC.Record object does not actually refresh the record.

This has to do with line 290 of lib/system/record.js. If refresh is called with no arguments or with recordOnly = false, the statement:

if (recordOnly || (none(recordOnly) && none(prKey)))

will always evaluate to false.

none(recordOnly) should be removed.