Skip to content

Instantly share code, notes, and snippets.

@sjzabel
Created December 29, 2013 05:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sjzabel/8167645 to your computer and use it in GitHub Desktop.
Save sjzabel/8167645 to your computer and use it in GitHub Desktop.
Finally the model, which uses its didLoad event to place its self into the proxy.
"use strict";
App.Flash = DS.Model.extend({
msg: DS.attr('string')
,flashType: DS.attr('string')
,didLoad: function(){
this._super();
App.flashProxy.pushObject(this);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment