Skip to content

Commit

Permalink
Allow mixins to define initialize(), which will be chained and run be…
Browse files Browse the repository at this point in the history
…fore store's initialize.
  • Loading branch information
STRML committed Apr 21, 2015
1 parent dc571f7 commit 0f14b25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/create_store.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ var createStore = function(spec) {

createStore.mixSpecIntoComponent(this, spec);

if (spec.initialize) {
spec.initialize.call(this, options);
if (this.initialize) {
this.initialize(options);
}
};

Expand Down

0 comments on commit 0f14b25

Please sign in to comment.