Ticket #122 (closed defect: fixed)
compatibility jQuery < 1.2.3
| Reported by: | lemisterv | Owned by: | jf.hovinne |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | editor | Version: | trunk |
| Keywords: | compatibility jquery | Cc: |
Description
/trunk/src/wymeditor/jquery.wymeditor.js line 727 :
jQuery(this._box).data(WYMeditor.WYM_INDEX, this._index);
function jQuery().data was added in jQuery 1.2.3 So WymEditor doesn't work anymore with jQuery < 1.2.3
By commenting this line 727, WymEditor works again in jQuery 1.1.3
I don't see any bad effect in removing this line... So it should be a good thing to make something like :
if(jQuery().data) jQuery(this._box).data(WYMeditor.WYM_INDEX, this._index);
Change History
Note: See
TracTickets for help on using
tickets.