-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed a typo that busted development mode
- Loading branch information
1 parent
f995f6d
commit 67197eb
Showing
9 changed files
with
21 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) | ||
* | ||
|
@@ -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); | ||
} | ||
} | ||
}; | ||
|
@@ -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) { | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.