Skip to content
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

jQuery 1.8.0 released #64

Closed
dznz opened this issue Aug 10, 2012 · 16 comments
Closed

jQuery 1.8.0 released #64

dznz opened this issue Aug 10, 2012 · 16 comments

Comments

@dznz
Copy link

dznz commented Aug 10, 2012

Downloads

Additions

  • Sizzle re-architected: selector engine rewritten for speed
  • Animations re-imagined: large refactor of animation system, improvements to generality and extendability
  • Automatic CSS prefixing: browser-specific prefixes are automatically added when using CSS properties
  • More flexibility with $(html, props): ability to use any jQuery method or plugin in object passed to $(html, props)
  • More than 160 bugs closed
  • Smaller code size
  • Modularity: new grunt-based build system allows stripping jQuery down

Removed

  • $(element).data(“events”)
  • Deferred.isResolved() and Deferred.isRejected()
  • $(element).closest(Array) returning Array
  • $.curCSS
  • $.attrFn

jQuery 1.8.0 is compatible with with the latest versions of jQuery UI (1.8.22), and jQuery Mobile (1.1.1).

There are more details at the full blog post

@kaluznyo
Copy link

+1

@JangoSteve
Copy link
Member

This is coming soon. I'm finishing up some backlogged bug-fixes for 1.7 today, and then I'll add support for 1.8.

@slbug
Copy link
Contributor

slbug commented Aug 14, 2012

also jquery-ui and jquery-ujs can be updated too.

@JangoSteve
Copy link
Member

@slbug Exactly. I gotta get some bugs fixed with jquery-ujs, then I can add jquery 1.8 support to jquery-ujs, then I can update jquery-rails with 1.8. So, don't fret, it's on its way!

@ai
Copy link
Contributor

ai commented Aug 15, 2012

Maybe it will be better to separate jquery-ujs and jQuery for Assets Pipeline? If i use something like https://github.com/kenn/jquery-rails-cdn , but don’t use UJS, I must wait too long for update because of compatibility issues with UJS (unecessary for me) :(.

@JangoSteve
Copy link
Member

@ai I don't understand what you're saying. This gem adds jquery-ujs to rails.

@ai
Copy link
Contributor

ai commented Aug 15, 2012

I mean that a lot of users use your gem to get just jQuery for Assets Pipeline.

@JangoSteve
Copy link
Member

I had no idea anyone was using it for that. The jquery-rails gem has always had the express purpose of including jquery-ujs in your rails app (even before the asset pipeline existed). Core rails ajax functionality actually depends on either prototype-ujs or jquery-ujs (or theoretically any other ujs gem) to work, so I would think the vast majority of people actually use the jquery-rails gem just to make rails work.

But if you are only using jquery (i.e. not using any :remote => true, :confirm, :disable, or :disable_with links/forms/inputs, or any :method => [post|put|delete] links in your entire rails app), you're probably better off just not using the gem and instead putting jquery.js in your vendor/assets/javascripts directory where it will automatically be included in your asset pipeline.

@JangoSteve
Copy link
Member

good news everyone

Update to jquery-rails 2.1.0.

@dznz
Copy link
Author

dznz commented Aug 16, 2012

Thanks for the prompt update, @JangoSteve! Have some GitHub Karma (omg that's a good idea right there).

@alanhogan
Copy link

Got a really stupid question here, but does anyone have any inkling why it might be the case that I am using jquery-rails 2.1.1 and yet $.fn.jquery is returning 1.7.2? I updated my bundle, and gemfile.lock reflects the update as expected.

@jandudulski
Copy link

@alanhogan did you check the browser cache?

@alanhogan
Copy link

Naturally I did a hard refresh. That should be enough, right, since I am using the asset pipeline, I believe…?

On Aug 22, 2012, at 4:55 AM, Jan Dudulski notifications@github.com wrote:

@alanhogan did you check the browser cache?


Reply to this email directly or view it on GitHub.

Alan Hogan
IFTTT

@JangoSteve
Copy link
Member

@alanhogan Hard to say, but something is either cached or misconfigured. I'd make sure that bundle show jquery-rails outputs 2.1.x, restart your rails app, actually clear your browser's cache, and then refresh the page.

@alanhogan
Copy link

Restarting the rails app did it. I should have tried that earlier. Thank you!

On Aug 22, 2012, at 9:13 AM, Steve Schwartz notifications@github.com wrote:

@alanhogan Hard to say, but something is either cached or misconfigured. I'd make sure that bundle show jquery-rails outputs 2.1.x, restart your rails app, and also actually clear your browser's cache and then refresh the page.


Reply to this email directly or view it on GitHub.

Alan Hogan
IFTTT

@JangoSteve
Copy link
Member

;-)

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

No branches or pull requests

7 participants