Comparing version 1.0.11 to 1.0.12
{ | ||
"name": "kpdux", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"author": "Kris Papercut <kearis666@gmail.com>", | ||
@@ -5,0 +5,0 @@ "license": "ISC", |
@@ -73,2 +73,8 @@ class StoreModule { | ||
getGetterCreator(getter) { | ||
return (state, ...attrs) => { | ||
return getter(state, ...attrs); | ||
}; | ||
} | ||
reduce() { | ||
@@ -210,5 +216,3 @@ return (state, action) => { | ||
if(!this[i]) { | ||
this[i] = (state, ...attrs) => { | ||
return this._data.getters[i](state, ...attrs); | ||
}; | ||
this[i] = this.getGetterCreator(this._data.getters[i]); | ||
} | ||
@@ -215,0 +219,0 @@ else { |
10463
288