Skip to content
Permalink
Browse files

Core: Deprecate .enableSelection() and .disableSelection(). Fixes #77…

…55 - Core: Deprecate .disableSelection() and .enableSelection().
  • Loading branch information...
scottgonzalez committed Aug 23, 2012
1 parent b9ef00f commit c343598d2a21712d33895f21468411cef23ac687
Showing with 14 additions and 11 deletions.
  1. +14 −11 ui/jquery.ui.core.js
@@ -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: {

0 comments on commit c343598

Please sign in to comment.
You can’t perform that action at this time.