Skip to content

Commit

Permalink
Support for react-native
Browse files Browse the repository at this point in the history
  • Loading branch information
goatslacker committed Mar 27, 2015
1 parent 175cbf9 commit a2cb91c
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 5 deletions.
6 changes: 5 additions & 1 deletion dist/alt-browser-with-addons.js
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,11 @@ var AltStore = (function () {
getState: {
value: function getState() {
// Copy over state so it's RO.
return assign({}, this[STATE_CONTAINER]);
var state = this[STATE_CONTAINER];
return Object.keys(state).reduce(function (obj, key) {
obj[key] = state[key];
return obj;
}, {});
}
}
});
Expand Down
6 changes: 5 additions & 1 deletion dist/alt-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,11 @@ var AltStore = (function () {
getState: {
value: function getState() {
// Copy over state so it's RO.
return assign({}, this[STATE_CONTAINER]);
var state = this[STATE_CONTAINER];
return Object.keys(state).reduce(function (obj, key) {
obj[key] = state[key];
return obj;
}, {});
}
}
});
Expand Down
6 changes: 5 additions & 1 deletion dist/alt-with-runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@ var AltStore = (function () {
getState: {
value: function getState() {
// Copy over state so it's RO.
return assign({}, this[STATE_CONTAINER]);
var state = this[STATE_CONTAINER];
return Object.keys(state).reduce(function (obj, key) {
obj[key] = state[key];
return obj;
}, {});
}
}
});
Expand Down
6 changes: 5 additions & 1 deletion dist/alt.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@ var AltStore = (function () {
getState: {
value: function getState() {
// Copy over state so it's RO.
return assign({}, this[STATE_CONTAINER]);
var state = this[STATE_CONTAINER];
return Object.keys(state).reduce(function (obj, key) {
obj[key] = state[key];
return obj;
}, {});
}
}
});
Expand Down
6 changes: 5 additions & 1 deletion src/alt.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ class AltStore {

getState() {
// Copy over state so it's RO.
return assign({}, this[STATE_CONTAINER])
const state = this[STATE_CONTAINER]
return Object.keys(state).reduce((obj, key) => {
obj[key] = state[key]
return obj
}, {})
}
}

Expand Down

0 comments on commit a2cb91c

Please sign in to comment.