summaryrefslogtreecommitdiff
path: root/lib/scripts/behaviour.js
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2011-06-27 18:18:24 +0200
committerAndreas Gohr <andi@splitbrain.org>2011-06-27 18:18:24 +0200
commita4f16859d7e91bb129edd3be5c62177d56030981 (patch)
treefa6f4d7a52ace3ef9dd0eaa4cd48e9a97ab267dd /lib/scripts/behaviour.js
parent87acb57f9cebe62178de1bde59cd54af45b8ad61 (diff)
downloadrpg-a4f16859d7e91bb129edd3be5c62177d56030981.tar.gz
rpg-a4f16859d7e91bb129edd3be5c62177d56030981.tar.bz2
prefixed jQuery var with $
Diffstat (limited to 'lib/scripts/behaviour.js')
-rw-r--r--lib/scripts/behaviour.js7
1 files changed, 3 insertions, 4 deletions
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();
}
},