Skip to content

Commit

Permalink
Expect an anchor name without a hash, as per Turbolinks.Location#anchor
Browse files Browse the repository at this point in the history
  • Loading branch information
packagethief committed Sep 26, 2015
1 parent a8393ba commit 8e191df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/turbolinks/snapshot.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Turbolinks.Snapshot
@body = body

hasAnchor: (anchor) ->
@body.querySelector(anchor)?
@body.querySelector("##{anchor}")?

hasSameTrackedHeadElementsAsSnapshot: (snapshot) ->
@getTrackedHeadElementSet().isEqualTo(snapshot.getTrackedHeadElementSet())
Expand Down

0 comments on commit 8e191df

Please sign in to comment.