react-konva
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "react-konva", | ||
"description": "React binding to canvas element via Konva framework", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"keywords": [ | ||
@@ -36,3 +36,3 @@ "react", | ||
"konva": "^1.0.1", | ||
"mocha": "^2.5.3", | ||
"mocha": "^3.0.0", | ||
"mocha-phantomjs": "^4.1.0", | ||
@@ -39,0 +39,0 @@ "react": "^15.2.0", |
@@ -24,3 +24,3 @@ # React Konva | ||
```bash | ||
npm instal react konva react-konva --save | ||
npm install react konva react-konva --save | ||
``` | ||
@@ -27,0 +27,0 @@ |
@@ -185,3 +185,7 @@ // Adapted from ReactART: | ||
if (isEvent && propChanged) { | ||
this.node.off(key.slice(2, key.length).toLowerCase(), oldProps[key]); | ||
var eventName = key.substr(2).toLowerCase(); | ||
if (eventName.substr(0, 7) === "content") { | ||
eventName = "content" + eventName.substr(7, 1).toUpperCase() + eventName.substr(8); | ||
} | ||
this.node.off(eventName, oldProps[key]); | ||
} | ||
@@ -200,3 +204,7 @@ var toRemove = !props.hasOwnProperty(key); | ||
if (isEvent && toAdd) { | ||
this.node.on(key.slice(2, key.length).toLowerCase(), props[key]); | ||
var eventName = key.substr(2).toLowerCase(); | ||
if (eventName.substr(0, 7) === "content") { | ||
eventName = "content" + eventName.substr(7, 1).toUpperCase() + eventName.substr(8); | ||
} | ||
this.node.on(eventName, props[key]); | ||
} | ||
@@ -203,0 +211,0 @@ if (!isEvent && ((props[key] !== oldProps[key]) || (props[key] !== this.node.getAttr(key)))) { |
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
18879
358