|
858 | 858 | // D.P. If _create threw this._splitter is not assigned |
859 | 859 | return; |
860 | 860 | } |
861 | | - $(this._splitter.bar).unbind(this._getEvent("focus"), |
| 861 | + $(this._splitter.bar).off(this._getEvent("focus"), |
862 | 862 | this._getEvent("blur"), |
863 | 863 | this._getEvent("keydown")); |
864 | | - $(this._splitter.bar.children()[ 0 ]).unbind(this._getEvent("mousedown")); |
865 | | - $(this._splitter.bar.children()[ 1 ]).unbind(this._getEvent("mousedown")); |
| 864 | + $(this._splitter.bar.children()[ 0 ]).off(this._getEvent("mousedown")); |
| 865 | + $(this._splitter.bar.children()[ 1 ]).off(this._getEvent("mousedown")); |
866 | 866 |
|
867 | 867 | //T.P. Bug #155452 fix _removeEventHandlers so when under mobile devices mouseenter and mouseleave are not unbinded |
868 | 868 | if (!this._isTouch()) { |
869 | | - $(this._splitter.bar).unbind(this._getEvent("mouseenter"), |
| 869 | + $(this._splitter.bar).off(this._getEvent("mouseenter"), |
870 | 870 | this._getEvent("mouseleave")); |
871 | | - $(this._splitter.bar.children()[ 0 ]).unbind(this._getEvent("mouseenter"), |
| 871 | + $(this._splitter.bar.children()[ 0 ]).off(this._getEvent("mouseenter"), |
872 | 872 | this._getEvent("mouseleave")); |
873 | | - $(this._splitter.bar.children()[ 1 ]).unbind(this._getEvent("mouseenter"), |
| 873 | + $(this._splitter.bar.children()[ 1 ]).off(this._getEvent("mouseenter"), |
874 | 874 | this._getEvent("mouseleave")); |
875 | 875 | } |
876 | 876 | }, |
|
2299 | 2299 |
|
2300 | 2300 | // D.A. 24th October 2013 Remove the attached events to window and document |
2301 | 2301 | if (evtHandlers) { |
2302 | | - $(document).unbind(this._getEvent("mouseup"), evtHandlers.documentMouseUp); |
2303 | | - $(document).unbind(this._getEvent("mousemove"), evtHandlers.documentMouseMove); |
2304 | | - $(window).unbind("resize", evtHandlers.windowResize); |
| 2302 | + $(document).off(this._getEvent("mouseup"), evtHandlers.documentMouseUp); |
| 2303 | + $(document).off(this._getEvent("mousemove"), evtHandlers.documentMouseMove); |
| 2304 | + $(window).off("resize", evtHandlers.windowResize); |
2305 | 2305 | } |
2306 | 2306 | this._superApply(arguments); |
2307 | 2307 | this._opt = null; |
|
0 commit comments