Comparing version 1.1.3 to 1.1.4
@@ -7,2 +7,7 @@ # Change Log | ||
## [1.1.4][2016-09-13] | ||
### Fixed | ||
- Prevent throwing an error when text property of `Konva.Text` = undefined or null | ||
## [1.1.3][2016-09-12] | ||
@@ -9,0 +14,0 @@ |
{ | ||
"name": "konva", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"author": "Anton Lavrenov", | ||
@@ -5,0 +5,0 @@ "files": [ |
@@ -23,3 +23,3 @@ ![Konva logo](https://raw.githubusercontent.com/konvajs/konvajs.github.io/master/apple-touch-icon-180x180.png) | ||
```html | ||
<script src="https://cdn.rawgit.com/konvajs/konva/1.1.3/konva.min.js"></script> | ||
<script src="https://cdn.rawgit.com/konvajs/konva/1.1.4/konva.min.js"></script> | ||
<div id="container"></div> | ||
@@ -69,6 +69,6 @@ <script> | ||
```html | ||
<script src="https://cdn.rawgit.com/konvajs/konva/1.1.3/konva.min.js"></script> | ||
<script src="https://cdn.rawgit.com/konvajs/konva/1.1.4/konva.min.js"></script> | ||
``` | ||
You can use CDN: [https://cdn.rawgit.com/konvajs/konva/1.1.3/konva.min.js](https://cdn.rawgit.com/konvajs/konva/1.1.3/konva.min.js) | ||
You can use CDN: [https://cdn.rawgit.com/konvajs/konva/1.1.4/konva.min.js](https://cdn.rawgit.com/konvajs/konva/1.1.4/konva.min.js) | ||
@@ -75,0 +75,0 @@ ###2 Load via AMD (requirejs): |
@@ -153,3 +153,3 @@ /*eslint-disable max-depth */ | ||
setText: function(text) { | ||
var str = Konva.Util._isString(text) ? text : text.toString(); | ||
var str = Konva.Util._isString(text) ? text : (text || '').toString(); | ||
this._setAttr(TEXT, str); | ||
@@ -156,0 +156,0 @@ return this; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
1249404