Skip to content

Update api entries with 1.9 upgrade guide info #240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
22 of 25 tasks
dmethvin opened this issue Jan 28, 2013 · 8 comments
Closed
22 of 25 tasks

Update api entries with 1.9 upgrade guide info #240

dmethvin opened this issue Jan 28, 2013 · 8 comments

Comments

@dmethvin
Copy link
Member

This could be broken into separate issues if that's more convenient.

  • .toggle(function, function, ... ) removed
  • jQuery.browser() removed
  • .live() removed
  • .die() removed
  • jQuery.sub() removed
  • .add()
  • .addBack( selector ) replaces .andSelf()
  • .after(), .before(), and .replaceWith() with disconnected nodes http://bugs.jquery.com/ticket/13338
  • .appendTo, .insertBefore, .insertAfter, and .replaceAll
  • AJAX events should be attached to document
  • Checkbox/radio state in a .trigger()ed "click" event
  • Order of triggered "focus" events
  • jQuery(htmlString) versus jQuery(selectorString)
  • Events not fired by the .data() method; names with periods
  • Ordering of disconnected nodes within a jQuery set
  • Loading and running scripts inside HTML content
  • .attr() versus .prop()
  • $("input").attr("type", newValue) in oldIE
  • "hover" pseudo-event
  • .selector property on jQuery objects
  • jQuery.attr()
  • jQuery.ajax returning a JSON result of an empty string
  • jQuery.proxy() context
  • .data("events")
  • Removed properties of the Event object
@dmethvin
Copy link
Member Author

We never documented .data()-fired events and I haven't seen any complaints so I'm not going to document they were removed.

dmethvin added a commit that referenced this issue Mar 17, 2013
poloniculmov added a commit to poloniculmov/api.jquery.com that referenced this issue Apr 23, 2013
Updated the exemple to reflect the change in Jquery 1.9 that the Ajax events should be attached to the document.
dmethvin pushed a commit that referenced this issue May 19, 2013
Updated the example to reflect the change in jQuery 1.9.
dmethvin: changed "broadcast" to "trigger" event terminology.
@jzaefferer
Copy link
Member

@dmethvin any chance you or someone else from the core team could finish this? "Ordering of disconnected nodes within a jQuery set" is interesting to me, since I recently hit a performance issue involving .add().

@dmethvin
Copy link
Member Author

Where would be the right place to put the note about ordering? It applies to all methods. I think that .add() needs special notice since it's better to use $([ a, b ]) than $(a).add(b) if you want a specific order.

@scottgonzalez
Copy link
Member

I'm not sure the best way to document the general rule, but just adding a sentence about the array usage not forcing DOM order is a step in the right direction. We use this in UI when we want to have a manually ordered set.

@dmethvin
Copy link
Member Author

We can mention that in jQuery() then. Since we got rid of the special behavior of .before() etc on disconnected elements I think .add() is a somewhat unique lone survivor so I can mention it there.

@jzaefferer
Copy link
Member

Down to just three open tasks, nice.

@dmethvin
Copy link
Member Author

I have some pr s on this but I didn't feel comfortable landing them blind
-- I don't have a local setup.

On Jan 29, 2014 6:06 AM, "Jörn Zaefferer" notifications@github.com wrote:

Down to just three open tasks, nice.

Reply to this email directly or view it on GitHub.

@jzaefferer
Copy link
Member

You can deploy manually to stage to test your changes or show them to others. Not great in the long run, but better then nothing. Ping me elsewhere if you need the credentials.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants