Skip to content
Snippets Groups Projects
Commit a4f16859 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

prefixed jQuery var with $

parent 87acb57f
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment