소스 검색

Merge pull request #963 from m-voloshin/destroy-tooltips

Completely remove attributes to destroy tooltip properly
master
Дамян Минков 8 년 전
부모
커밋
b3f0620f5b
1개의 변경된 파일3개의 추가작업 그리고 5개의 파일을 삭제
  1. 3
    5
      modules/UI/util/UIUtil.js

+ 3
- 5
modules/UI/util/UIUtil.js 파일 보기

@@ -143,11 +143,9 @@ const TOOLTIP_POSITIONS = {
143 143
      * @param element the element to remove the tooltip from
144 144
      */
145 145
     removeTooltip: function (element) {
146
-        AJS.$(element).tooltip('destroy');
147
-        element.setAttribute('data-tooltip', '');
148
-        element.setAttribute('data-i18n','');
149
-        element.setAttribute('content','');
150
-        element.setAttribute('shortcut','');
146
+        element.removeAttribute('data-tooltip', '');
147
+        element.removeAttribute('data-i18n','');
148
+        element.removeAttribute('content','');
151 149
     },
152 150
 
153 151
     /**

Loading…
취소
저장