Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Remove deprecated clickedElement option #186

Merged
merged 1 commit into from

2 participants

@josh
Collaborator

/cc @defunkt

@defunkt
Owner

:+1:

@defunkt defunkt merged commit e95ff46 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 10, 2012
  1. @josh
This page is out of date. Refresh to see the latest.
Showing with 0 additions and 19 deletions.
  1. +0 −4 jquery.pjax.js
  2. +0 −15 test/unit/fn_pjax.js
View
4 jquery.pjax.js
@@ -78,7 +78,6 @@ function handleClick(event, container, options) {
url: link.href,
container: $(link).attr('data-pjax'),
target: link,
- clickedElement: $(link), // DEPRECATED: use target
fragment: null
}
@@ -153,9 +152,6 @@ function pjax(options) {
var target = options.target
- // DEPRECATED: use options.target
- if (!target && options.clickedElement) target = options.clickedElement[0]
-
var hash = parseURL(options.url).hash
// DEPRECATED: Save references to original event callbacks. However,
View
15 test/unit/fn_pjax.js
@@ -111,21 +111,6 @@ if ($.support.pjax) {
frame.$("a[href='/dinosaurs.html']").click()
})
- asyncTest("sets clickedElement to target jquery object", function() {
- var frame = this.frame
-
- frame.$("a").pjax({ container: "#main" })
-
- var link = frame.$("a[href='/dinosaurs.html']")[0]
-
- frame.$("#main").on("pjax:end", function(event, xhr, options) {
- equal(link, options.clickedElement[0])
- start()
- })
-
- frame.$(link).click()
- })
-
asyncTest("sets relatedTarget to clicked element", function() {
var frame = this.frame
Something went wrong with that request. Please try again.