Browse files

Core: Define $.curCSS if it doesn't exist for jQuery 1.8+ support.

  • Loading branch information...
1 parent 831333a commit 98772fd0a1094f7fb2fbe1d8a95557bf2b545f6e @scottgonzalez scottgonzalez committed Jun 25, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 ui/jquery.ui.core.js
View
5 ui/jquery.ui.core.js
@@ -245,6 +245,11 @@ $(function() {
body.removeChild( div ).style.display = "none";
});
+// jQuery <1.4.3 uses curCSS, in 1.4.3 - 1.7.2 curCSS = css, 1.8+ only has css
+if ( !$.curCSS ) {
+ $.curCSS = $.css;
@gnarf
jQuery Foundation member
gnarf added a note Sep 12, 2012

Not sure why I just thought about this, but I feel like we should be doing something like $.ui.css = $.curCSS || $.css rather than punching a method that other people might be using to test for 1.8 support.

@scottgonzalez
jQuery Foundation member

That's a silly thing to use for testing version numbers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+}
+

1 comment on commit 98772fd

@qinbx

Thanks, it works good.

Please sign in to comment.