mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Core: Deprecate .enableSelection() and .disableSelection(). Fixes #7755 - Core: Deprecate .disableSelection() and .enableSelection().
This commit is contained in:
parent
b9ef00f0c7
commit
c343598d2a
25
ui/jquery.ui.core.js
vendored
25
ui/jquery.ui.core.js
vendored
@ -125,17 +125,6 @@ $.fn.extend({
|
||||
$( this ).removeAttr( "id" );
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
disableSelection: function() {
|
||||
return this.bind( ( $.support.selectstart ? "selectstart" : "mousedown" ) +
|
||||
".ui-disableSelection", function( event ) {
|
||||
event.preventDefault();
|
||||
});
|
||||
},
|
||||
|
||||
enableSelection: function() {
|
||||
return this.unbind( ".ui-disableSelection" );
|
||||
}
|
||||
});
|
||||
|
||||
@ -268,6 +257,20 @@ $(function() {
|
||||
|
||||
|
||||
// deprecated
|
||||
|
||||
$.fn.extend({
|
||||
disableSelection: function() {
|
||||
return this.bind( ( $.support.selectstart ? "selectstart" : "mousedown" ) +
|
||||
".ui-disableSelection", function( event ) {
|
||||
event.preventDefault();
|
||||
});
|
||||
},
|
||||
|
||||
enableSelection: function() {
|
||||
return this.unbind( ".ui-disableSelection" );
|
||||
}
|
||||
});
|
||||
|
||||
$.extend( $.ui, {
|
||||
// $.ui.plugin is deprecated. Use the proxy pattern instead.
|
||||
plugin: {
|
||||
|
Loading…
Reference in New Issue
Block a user