Browse files

Revert "Try to find first A descendant"

Doesn't degrade nicely for non-pushstate browsers.

This reverts commit d8adc91.
  • Loading branch information...
1 parent c147d3c commit 226989c6ec874df40cb2a50bdce719d89d583270 @josh josh committed Apr 24, 2012
Showing with 0 additions and 4 deletions.
  1. +0 −4 jquery.pjax.js
View
4 jquery.pjax.js
@@ -53,11 +53,7 @@ function handleClick(event, container, options) {
var link = event.currentTarget
- // If current target isnt a link, try to find the first A descendant
if (link.tagName.toUpperCase() !== 'A')
- link = $(link).find('a')[0]
-
- if (!link)
throw "$.fn.pjax or $.pjax.click requires an anchor element"
// Middle click, cmd click, and ctrl click should open

0 comments on commit 226989c

Please sign in to comment.