Skip to content
This repository was archived by the owner on Nov 26, 2022. It is now read-only.

Commit 37edd47

Browse files
committed
version 1.0.15
1 parent c38083f commit 37edd47

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tc-angular-chartjs",
3-
"version": "1.0.14",
3+
"version": "1.0.15",
44
"description": "Add Chart.js charts to your angular application",
55
"homepage": "http://carlcraig.github.io/tc-angular-chartjs/",
66
"author": "Carl Craig <carlcraig@3c-studios.com>",

dist/tc-angular-chartjs.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* tc-angular-chartjs - v1.0.14 - 2016-02-15
2+
* tc-angular-chartjs - v1.0.15 - 2016-02-15
33
* Copyright (c) 2016 Carl Craig <carlcraig.threeceestudios@gmail.com>
44
* Dual licensed with the Apache-2.0 or MIT license.
55
*/
@@ -66,7 +66,7 @@
6666
}
6767
}
6868
$scope.$on("$destroy", function() {
69-
if (chartObj) {
69+
if (chartObj && typeof chartObj.destroy === "function") {
7070
chartObj.destroy();
7171
}
7272
});
@@ -88,7 +88,7 @@
8888
}
8989
$scope.$watch("data", function(value) {
9090
if (value) {
91-
if (chartObj) {
91+
if (chartObj && typeof chartObj.destroy === "function") {
9292
chartObj.destroy();
9393
}
9494
if (chartType) {

dist/tc-angular-chartjs.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tc-angular-chartjs",
3-
"version": "1.0.14",
3+
"version": "1.0.15",
44
"description": "Add Chart.js charts to your angular application",
55
"homepage": "http://carlcraig.github.io/tc-angular-chartjs/",
66
"author": "Carl Craig <carlcraig.threeceestudios@gmail.com>",

0 commit comments

Comments
 (0)