Commit 1ca1ef94 authored by Jacob Thornton's avatar Jacob Thornton
Browse files

fix opera bug \o/ !!!! #1776

parent cf492476
Showing with 6 additions and 8 deletions
+6 -8
No preview for this file type
...@@ -94,12 +94,11 @@ ...@@ -94,12 +94,11 @@
this.activeTarget = target this.activeTarget = target
this.$body $(this.selector)
.find(this.selector).parent('.active') .parent('.active')
.removeClass('active') .removeClass('active')
active = this.$body active = $(this.selector + '[href="' + target + '"]')
.find(this.selector + '[href="' + target + '"]')
.parent('li') .parent('li')
.addClass('active') .addClass('active')
......
...@@ -94,12 +94,11 @@ ...@@ -94,12 +94,11 @@
this.activeTarget = target this.activeTarget = target
this.$body $(this.selector)
.find(this.selector).parent('.active') .parent('.active')
.removeClass('active') .removeClass('active')
active = this.$body active = $(this.selector + '[href="' + target + '"]')
.find(this.selector + '[href="' + target + '"]')
.parent('li') .parent('li')
.addClass('active') .addClass('active')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment