aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.core.js
diff options
context:
space:
mode:
authorFelix Nagel <info@felixnagel.com>2012-12-15 01:10:32 +0100
committerFelix Nagel <info@felixnagel.com>2012-12-15 01:10:32 +0100
commit8aa24dd1d52fb1f2454905a2e3bb9b86c23cb4ad (patch)
treecf465822774b24aa3fbec3ff8eddb17d14f731ae /ui/jquery.ui.core.js
parent25023c30407b92a5c44f117df560b9c87d6d94da (diff)
parent8ec7a1b69ffd86edbef06e30ca4368600531e649 (diff)
downloadjquery-ui-8aa24dd1d52fb1f2454905a2e3bb9b86c23cb4ad.tar.gz
jquery-ui-8aa24dd1d52fb1f2454905a2e3bb9b86c23cb4ad.zip
Merge branch 'master' into selectmenu
Diffstat (limited to 'ui/jquery.ui.core.js')
-rw-r--r--ui/jquery.ui.core.js15
1 files changed, 11 insertions, 4 deletions
diff --git a/ui/jquery.ui.core.js b/ui/jquery.ui.core.js
index bd3e30758..694cb1bef 100644
--- a/ui/jquery.ui.core.js
+++ b/ui/jquery.ui.core.js
@@ -152,7 +152,7 @@ function focusable( element, isTabIndexNotNaN ) {
function visible( element ) {
return $.expr.filters.visible( element ) &&
- !$( element ).parents().andSelf().filter(function() {
+ !$( element ).parents().addBack().filter(function() {
return $.css( this, "visibility" ) === "hidden";
}).length;
}
@@ -180,9 +180,6 @@ $.extend( $.expr[ ":" ], {
}
});
-// support
-$.support.selectstart = "onselectstart" in document.createElement( "div" );
-
// support: jQuery <1.8
if ( !$( "<a>" ).outerWidth( 1 ).jquery ) {
$.each( [ "Width", "Height" ], function( i, name ) {
@@ -230,6 +227,15 @@ if ( !$( "<a>" ).outerWidth( 1 ).jquery ) {
});
}
+// support: jQuery <1.8
+if ( !$.fn.addBack ) {
+ $.fn.addBack = function( selector ) {
+ return this.add( selector == null ?
+ this.prevObject : this.prevObject.filter( selector )
+ );
+ };
+}
+
// support: jQuery 1.6.1, 1.6.2 (http://bugs.jquery.com/ticket/9413)
if ( $( "<a>" ).data( "a-b", "a" ).removeData( "a-b" ).data( "a-b" ) ) {
$.fn.removeData = (function( removeData ) {
@@ -250,6 +256,7 @@ if ( $( "<a>" ).data( "a-b", "a" ).removeData( "a-b" ).data( "a-b" ) ) {
// deprecated
$.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() );
+$.support.selectstart = "onselectstart" in document.createElement( "div" );
$.fn.extend({
disableSelection: function() {
return this.bind( ( $.support.selectstart ? "selectstart" : "mousedown" ) +