projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
BUG FIX: Fixed indentation in respect to the jslint rules.
[dygraphs.git]
/
plugins
/
annotations.js
diff --git
a/plugins/annotations.js
b/plugins/annotations.js
index
d47f8c7
..
6a24894
100644
(file)
--- a/
plugins/annotations.js
+++ b/
plugins/annotations.js
@@
-4,8
+4,12
@@
* MIT-licensed (http://opensource.org/licenses/MIT)
*/
* MIT-licensed (http://opensource.org/licenses/MIT)
*/
+/*global Dygraph:false */
+
Dygraph.Plugins.Annotations = (function() {
Dygraph.Plugins.Annotations = (function() {
+"use strict";
+
/**
Current bits of jankiness:
- Uses dygraph.layout_ to get the parsed annotations.
/**
Current bits of jankiness:
- Uses dygraph.layout_ to get the parsed annotations.
@@
-52,7
+56,7
@@
annotations.prototype.didDrawChart = function(e) {
// Early out in the (common) case of zero annotations.
var points = g.layout_.annotated_points;
// Early out in the (common) case of zero annotations.
var points = g.layout_.annotated_points;
- if (!points || points.length == 0) return;
+ if (!points || points.length ==
=
0) return;
var containerDiv = e.canvas.parentNode;
var annotationStyle = {
var containerDiv = e.canvas.parentNode;
var annotationStyle = {