Commit 4edbbadfd11cc2e833529d4eacebb32a9df3372c

Authored by Georg Hopp
1 parent 5d52762d

Break condition in multiple lines.

@@ -8,7 +8,11 @@ content_top = content_left = width_delta = height_delta = 0 @@ -8,7 +8,11 @@ content_top = content_left = width_delta = height_delta = 0
8 8
9 App.init = -> 9 App.init = ->
10 $('a[href*=\\#]').each -> 10 $('a[href*=\\#]').each ->
11 - if location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') and location.hostname == this.hostname and this.hash.replace(/#/,'') 11 + lpath = location.pathname.replace(/^\//,'')
  12 + tpath = this.pathname.replace(/^\//,'')
  13 + if lpath == tpath and
  14 + location.hostname == this.hostname and
  15 + this.hash.replace(/#/,'')
12 $targetId = $(this.hash) 16 $targetId = $(this.hash)
13 $targetAnchor = $('[name=' + this.hash.slice(1) + ']') 17 $targetAnchor = $('[name=' + this.hash.slice(1) + ']')
14 $target = if $targetId.length 18 $target = if $targetId.length
Please register or login to post a comment