Skip to content

Commit

Permalink
Fixed a typo that busted development mode
Browse files Browse the repository at this point in the history
  • Loading branch information
stevendesu authored and Silverkisses committed Jan 15, 2017
1 parent f995f6d commit 67197eb
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

>A minimalist state management library (inspired by Redux)
>
>v2.0.0
>v2.0.1
>
>Copyright 2016 Steven Barnett (stevendesu)
Expand Down Expand Up @@ -43,7 +43,7 @@ These are features which are no longer supported and will be removed in the
next major version of Minimux. If you use any of these features, you may want
to modify your code to no longer depend on them.

**No features deprecated yet as of v2.0.0**
**No features deprecated yet as of v2.0.1**

## Requirements ##

Expand Down
12 changes: 6 additions & 6 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion middleware/react.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions minimux.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };

/*
* Minimux v2.0.0
* Minimux v2.0.1
* Author: Steven Barnett (stevendesu) <[email protected]>
* License: MIT +no-false-attribs (https://spdx.org/licenses/MITNFA.html)
*
Expand Down Expand Up @@ -57,9 +57,9 @@ var register = function register(actions, reducer) {
}
// For loops are faster than forEach
for (var i = 0, len = actions.length; i < len; i++) {
var _action = actions[i];
reducers[_action] = reducers[_action] || [];
reducers[_action].push(reducer);
var action = actions[i];
reducers[action] = reducers[action] || [];
reducers[action].push(reducer);
}
}
};
Expand Down Expand Up @@ -96,8 +96,8 @@ var coreFunction = function coreFunction(action) {

var dispatch = function dispatch(actions) {
if ("development" !== "production") {
if ((typeof action === "undefined" ? "undefined" : _typeof(action)) !== "object") {
throw "Invalid type (" + (typeof action === "undefined" ? "undefined" : _typeof(action)) + ") for argument \"action\" passed to dispatch. Expected " + "object or array of objects.";
if ((typeof actions === "undefined" ? "undefined" : _typeof(actions)) !== "object") {
throw "Invalid type (" + (typeof actions === "undefined" ? "undefined" : _typeof(actions)) + ") for argument \"action\" passed to dispatch. Expected " + "object or array of objects.";
}
if (isArray(actions)) {
actions.forEach(function (el, idx) {
Expand Down
2 changes: 1 addition & 1 deletion minimux.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 67197eb

Please sign in to comment.