From a4f16859d7e91bb129edd3be5c62177d56030981 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Mon, 27 Jun 2011 18:18:24 +0200 Subject: prefixed jQuery var with $ --- lib/scripts/behaviour.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib/scripts/behaviour.js') diff --git a/lib/scripts/behaviour.js b/lib/scripts/behaviour.js index 62c20eb0f..7cc65579e 100644 --- a/lib/scripts/behaviour.js +++ b/lib/scripts/behaviour.js @@ -8,7 +8,6 @@ * automatically whenever a certain object is in the DOM or a certain CSS * class was found */ - var dw_behaviour = { init: function(){ @@ -24,9 +23,9 @@ var dw_behaviour = { * Looks for an element with the ID scroll__here at scrolls to it */ scrollToMarker: function(){ - var obj = jQuery('#scroll__here'); - if(obj.length) { - obj[0].scrollIntoView(); + var $obj = jQuery('#scroll__here'); + if($obj.length) { + $obj[0].scrollIntoView(); } }, -- cgit v1.2.3