#3174 closed enhancement (fixed)
Return on enableSelection and disableSelection
Reported by: | Owned by: | paul | |
---|---|---|---|
Priority: | minor | Milestone: | 1.6rc2 |
Component: | ui.core | Version: | 1.5.2 |
Keywords: | enableSelection, disableSelection | Cc: | [email protected]… |
Blocked by: | Blocking: |
Description
The enableSelection and disableSelection functions return nothing, and it would be nice if they returned the jQuery selector so that they can support further function chaining. Adding the return would be as simple as...
disableSelection: function(el) {
return $(el).attr('unselectable', 'on').css('MozUserSelect', 'none');
}, enableSelection: function(el) {
return $(el).attr('unselectable', 'off').css('MozUserSelect', );
},
Oh, wouldn't it be nice?
Jonathan
Change History (5)
comment:1 Changed 14 years ago by
Milestone: | → TDB |
---|---|
Priority: | major → minor |
comment:2 Changed 14 years ago by
comment:3 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 Changed 14 years ago by
Milestone: | TBD → 1.6rc2 |
---|
Note: See
TracTickets for help on using
tickets.
Good idea, thanks! Implemented in r690.