Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

Commit

Permalink
Merge pull request #35 from jedireza/spec-check
Browse files Browse the repository at this point in the history
removed unnecessary spec.statics check
  • Loading branch information
mridgway committed Nov 11, 2014
2 parents 1097352 + 333b225 commit 2423478
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions utils/createStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,10 @@ module.exports = function createStore(spec) {

util.inherits(Store, BaseStore);

if (spec.statics) {
Object.keys(spec.statics).forEach(function (prop) {
Store[prop] = spec.statics[prop];
});
}
Object.keys(spec.statics).forEach(function (prop) {
Store[prop] = spec.statics[prop];
});

Store.storeName = spec.storeName || Store.storeName;
Store.handlers = spec.handlers || Store.handlers;
Store.mixins = spec.mixins || Store.mixins;
Expand Down

0 comments on commit 2423478

Please sign in to comment.