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

Commit

Permalink
update to version v1.0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
carlcraig committed Jul 7, 2015
1 parent d6d57e4 commit b9a430c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tc-angular-chartjs",
"version": "1.0.11",
"version": "1.0.12",
"description": "Add Chart.js charts to your angular application",
"homepage": "http://carlcraig.github.io/tc-angular-chartjs/",
"author": "Carl Craig <carlcraig@3c-studios.com>",
Expand Down
10 changes: 4 additions & 6 deletions dist/tc-angular-chartjs.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* tc-angular-chartjs - v1.0.11 - 2015-05-17
* Copyright (c) 2015 Carl Craig <carlcraig@3c-studios.com>
* tc-angular-chartjs - v1.0.12 - 2015-07-08
* Copyright (c) 2015 Carl Craig <carlcraig.threeceestudios@gmail.com>
* Dual licensed with the Apache-2.0 or MIT license.
*/
(function() {
Expand Down Expand Up @@ -36,7 +36,7 @@
TcChartjsDoughnut.$inject = [ "TcChartjsFactory" ];
function TcChartjsFactory() {
return function(chartType) {
var directive = {
return {
restrict: "A",
scope: {
data: "=chartData",
Expand All @@ -47,7 +47,6 @@
},
link: link
};
return directive;
function link($scope, $elem, $attrs) {
var ctx = $elem[0].getContext("2d");
var chart = new Chart(ctx);
Expand Down Expand Up @@ -127,14 +126,13 @@
};
}
function TcChartjsLegend() {
var directive = {
return {
restrict: "A",
scope: {
legend: "=chartLegend"
},
link: link
};
return directive;
function link($scope, $elem) {
$scope.$watch("legend", function(value) {
if (value) {
Expand Down
6 changes: 3 additions & 3 deletions dist/tc-angular-chartjs.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "tc-angular-chartjs",
"version": "1.0.11",
"version": "1.0.12",
"description": "Add Chart.js charts to your angular application",
"homepage": "http://carlcraig.github.io/tc-angular-chartjs/",
"author": "Carl Craig <carlcraig@3c-studios.com>",
"author": "Carl Craig <carlcraig.threeceestudios@gmail.com>",
"main": "index.js",
"dependencies": {
"chart.js": "^1.0.2"
Expand Down

0 comments on commit b9a430c

Please sign in to comment.