Skip to main content

Bug Tracker

Side navigation

#11921 closed bug (invalid)

Opened June 16, 2012 12:38AM UTC

Closed June 18, 2012 04:19PM UTC

Last modified December 18, 2013 07:19AM UTC

curCSS issue with jQuery UI

Reported by: Motty Owned by:
Priority: high Milestone: 1.8
Component: css Version: git
Keywords: Cc:
Blocked by: Blocking:
Description

When I use jQuery UI v1.8.18 position utility with jQuery 1.8pre I am getting this error:

Uncaught TypeError: Object function ( selector, context ) {
		// The jQuery object is actually just the init constructor 'enhanced'
		return new jQuery.fn.init( selector, context, rootjQuery );
	} has no method 'curCSS' - jquery-ui.js:10079

I know curCSS is just an alias for jQuery.css, but this seems to break backwards compatibility because when I switch the jQuery version to 1.7.2, the utility works as expected.

Demo: http://jsfiddle.net/Mottie/mTdGm/

Attachments (0)
Change History (18)

Changed June 16, 2012 12:56AM UTC by scottgonzalez comment:1

This is not a bug and jQuery UI master doesn't use curCSS.

Changed June 16, 2012 12:58AM UTC by dmethvin comment:2

resolution: → invalid
status: newclosed

Well Scott should know so I'll close this ticket. Just FYI that's a pretty old version. It would be worthwhile reporting these if they are broken with the most recent version of UI.

Changed June 16, 2012 05:01PM UTC by Motty comment:3

_comment0: Well I was using google's CDN of jQuery UI \ \ https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.js \ \ search through that page, it finds 19 instances of "curCSS"1339866182492986
_comment1: Well I was using google's CDN of jQuery UI (1.8.21) \ \ https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.js \ \ search through that page, it finds 19 instances of "curCSS"1339866258809501

Well I was using google's CDN of jQuery UI, I just tested it with the latest version (1.8.21)... same error.

https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.js

search through that page, it finds 19 instances of "curCSS"

Changed June 16, 2012 06:36PM UTC by rwaldron comment:4

jQuery 1.8pre is not a stable release of jQuery. This should be refiled with jQuery UI so compatibility progress can be tracked.

Changed June 17, 2012 01:37AM UTC by mikesherov comment:5

component: unfiledcss
milestone: None1.8
priority: undecidedhigh
resolution: invalid
status: closedreopened

We recently removed jQuery.curCSS in 1.8pre as its been deprecated since jquery 1.3. It appears that jQueryUI still uses $.curCSS heavily. I'm reopening to talk about whether or not it's worth saving 3 bytes to force an incompatibility with latest UI.

Changed June 18, 2012 04:19PM UTC by mikesherov comment:6

resolution: → invalid
status: reopenedclosed

scott.gonzalez knows what he's doing. I shouldn't have re-opened.

Changed June 25, 2012 02:22PM UTC by scottgonzalez comment:7

I just added $.curCSS back in UI core in the 1-8-stable branch so that jQuery UI 1.8.22+ can support jQuery 1.8.

https://github.com/jquery/jquery-ui/commit/98772fd0a1094f7fb2fbe1d8a95557bf2b545f6e

Supporting 18 versions of jQuery core sure is fun :-)

Changed September 21, 2012 11:43AM UTC by djwillyguevara@gmail.com comment:8

Update jquery UI too and Solved.

Changed October 25, 2012 08:49AM UTC by anonymous comment:9

New wersion jQuery UI 1.9.0 - I have this problem again.

Changed October 25, 2012 09:17AM UTC by scottgonzalez comment:10

@anonymous: jQuery UI 1.9.0 never uses curCSS. Please use the forums or StackOverflow for help.

Changed October 25, 2012 10:12AM UTC by email@ian-b.com comment:11

I have this problem with jQuery UI 1.8.21 Dialog and jQuery 1.8.2

Changed October 25, 2012 12:56PM UTC by email@ian-b.com comment:12

Replying to [comment:11 email@…]:

I have this problem with jQuery UI 1.8.21 Dialog and jQuery 1.8.2

Fixed by using jQuery UI 1.9.0.

Changed January 17, 2013 07:24PM UTC by raphievila@gmail.com comment:13

I'm having the same problem with 1.9.2, just install it. Using draggable and hasn't been working since 1.8.21

Changed January 17, 2013 09:50PM UTC by anonymous comment:14

Replying to [comment:13 raphievila@…]:

I'm having the same problem with 1.9.2, just install it. Using draggable and hasn't been working since 1.8.21

I found the error... I was using a plug_in that used the jQuery.browser that has been deprecated. Create my own browser detector, delete plug-in and now is working fine. Sorry for that.

Changed April 04, 2013 10:07PM UTC by gorilonmax comment:15

I only changed curCSS to css and worked fine.

Changed June 20, 2013 12:23PM UTC by vikkukkiv@gmail.com comment:16

Replying to [comment:15 gorilonmax]:

I only changed curCSS to css and worked fine.

Thanks for the tip. I did the same, it works.

Changed October 18, 2013 05:33PM UTC by billygoat comment:17

Replying to [comment:15 gorilonmax]:

I only changed curCSS to css and worked fine.

Thank you, I replaced curCSS with css and it also started working properly.

Changed December 18, 2013 07:19AM UTC by anonymous comment:18

Corrected simply:

 
  • Append a string jquery.js
jQuery.curCSS = jQuery.css;