aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-08-23 07:30:29 -0400
committerScott González <scott.gonzalez@gmail.com>2012-08-23 07:30:29 -0400
commitc343598d2a21712d33895f21468411cef23ac687 (patch)
tree113113e1b494ecd84a5bc304a46b9f10eca37ec8 /ui
parentb9ef00f0c7fe20980e3811e6622d8e2287e0fbf5 (diff)
downloadjquery-ui-c343598d2a21712d33895f21468411cef23ac687.tar.gz
jquery-ui-c343598d2a21712d33895f21468411cef23ac687.zip
Core: Deprecate .enableSelection() and .disableSelection(). Fixes #7755 - Core: Deprecate .disableSelection() and .enableSelection().
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.core.js25
1 files changed, 14 insertions, 11 deletions
diff --git a/ui/jquery.ui.core.js b/ui/jquery.ui.core.js
index 0e33f11ed..d37698422 100644
--- a/ui/jquery.ui.core.js
+++ b/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: {