Skip to content
Browse files

Define $ variable in correct scope

  • Loading branch information...
1 parent 5268d8a commit 4f12dc4d25d284507e742c615d66baa4c414c8bd @rbu rbu committed Feb 25, 2014
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/js/Rickshaw.Graph.Behavior.Series.Toggle.js
View
3 src/js/Rickshaw.Graph.Behavior.Series.Toggle.js
@@ -9,8 +9,6 @@ Rickshaw.Graph.Behavior.Series.Toggle = function(args) {
this.addAnchor = function(line) {
- var $ = jQuery;
-
var anchor = document.createElement('a');
anchor.innerHTML = '✔';
anchor.classList.add('action');
@@ -77,6 +75,7 @@ Rickshaw.Graph.Behavior.Series.Toggle = function(args) {
if (this.legend) {
+ var $ = jQuery;
if (typeof $ != 'undefined' && $(this.legend.list).sortable) {
$(this.legend.list).sortable( {

0 comments on commit 4f12dc4

Please sign in to comment.
Something went wrong with that request. Please try again.