react-simple-di
Advanced tools
Comparing version 1.0.0 to 1.0.1
# ChangeLog | ||
### v1.0.1 | ||
* Fix issue of re-binding context to action multiple times as we apply conext multiple time. | ||
See: [#2](https://github.com/kadirahq/react-simple-di/issues/2) | ||
### v1.0.0 | ||
Initial Version. | ||
Initial Version. |
@@ -32,8 +32,9 @@ 'use strict'; | ||
var actionMap = _actions[key]; | ||
var newActionMap = {}; | ||
for (var actionName in actionMap) { | ||
if (actionMap.hasOwnProperty(actionName)) { | ||
actionMap[actionName] = actionMap[actionName].bind(null, context); | ||
newActionMap[actionName] = actionMap[actionName].bind(null, context); | ||
} | ||
} | ||
actions[key] = actionMap; | ||
actions[key] = newActionMap; | ||
} | ||
@@ -40,0 +41,0 @@ } |
{ | ||
"name": "react-simple-di", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Simple Dependancy Injection Solution for React", | ||
@@ -5,0 +5,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9121
87