Created
June 20, 2013 20:48
-
-
Save igorT/5826501 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
finishedMaterializing: function(manager) { | |
var isDirty = get(manager, 'dirtyWhileMaterializing'); | |
if (isDirty) { | |
manager.transitionTo('loaded.updated'); | |
set(manager, 'dirtyWhileMaterializing', false); | |
} else { | |
manager.transitionTo('loaded.saved'); | |
} | |
}, | |
becomeDirty: function(manager) { | |
set(manager, 'dirtyWhileMaterializing', true); | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment