equal
deleted
inserted
replaced
1 /*! |
1 /*! |
2 * jQuery UI Tooltip 1.13.1 |
2 * jQuery UI Tooltip 1.13.3 |
3 * http://jqueryui.com |
3 * https://jqueryui.com |
4 * |
4 * |
5 * Copyright jQuery Foundation and other contributors |
5 * Copyright OpenJS Foundation and other contributors |
6 * Released under the MIT license. |
6 * Released under the MIT license. |
7 * http://jquery.org/license |
7 * https://jquery.org/license |
8 */ |
8 */ |
9 |
9 |
10 //>>label: Tooltip |
10 //>>label: Tooltip |
11 //>>group: Widgets |
11 //>>group: Widgets |
12 //>>description: Shows additional information for any element on hover or focus. |
12 //>>description: Shows additional information for any element on hover or focus. |
13 //>>docs: http://api.jqueryui.com/tooltip/ |
13 //>>docs: https://api.jqueryui.com/tooltip/ |
14 //>>demos: http://jqueryui.com/tooltip/ |
14 //>>demos: https://jqueryui.com/tooltip/ |
15 //>>css.structure: ../../themes/base/core.css |
15 //>>css.structure: ../../themes/base/core.css |
16 //>>css.structure: ../../themes/base/tooltip.css |
16 //>>css.structure: ../../themes/base/tooltip.css |
17 //>>css.theme: ../../themes/base/theme.css |
17 //>>css.theme: ../../themes/base/theme.css |
18 |
18 |
19 ( function( factory ) { |
19 ( function( factory ) { |
22 if ( typeof define === "function" && define.amd ) { |
22 if ( typeof define === "function" && define.amd ) { |
23 |
23 |
24 // AMD. Register as an anonymous module. |
24 // AMD. Register as an anonymous module. |
25 define( [ |
25 define( [ |
26 "jquery", |
26 "jquery", |
27 "./core" |
27 "../keycode", |
|
28 "../position", |
|
29 "../unique-id", |
|
30 "../version", |
|
31 "../widget" |
28 ], factory ); |
32 ], factory ); |
29 } else { |
33 } else { |
30 |
34 |
31 // Browser globals |
35 // Browser globals |
32 factory( jQuery ); |
36 factory( jQuery ); |
33 } |
37 } |
34 } )( function( $ ) { |
38 } )( function( $ ) { |
35 "use strict"; |
39 "use strict"; |
36 |
40 |
37 $.widget( "ui.tooltip", { |
41 $.widget( "ui.tooltip", { |
38 version: "1.13.1", |
42 version: "1.13.3", |
39 options: { |
43 options: { |
40 classes: { |
44 classes: { |
41 "ui-tooltip": "ui-corner-all ui-widget-shadow" |
45 "ui-tooltip": "ui-corner-all ui-widget-shadow" |
42 }, |
46 }, |
43 content: function() { |
47 content: function() { |
215 contentOption = this.options.content, |
219 contentOption = this.options.content, |
216 that = this, |
220 that = this, |
217 eventType = event ? event.type : null; |
221 eventType = event ? event.type : null; |
218 |
222 |
219 if ( typeof contentOption === "string" || contentOption.nodeType || |
223 if ( typeof contentOption === "string" || contentOption.nodeType || |
220 contentOption.jquery ) { |
224 contentOption.jquery ) { |
221 return this._open( event, target, contentOption ); |
225 return this._open( event, target, contentOption ); |
222 } |
226 } |
223 |
227 |
224 content = contentOption.call( target[ 0 ], function( response ) { |
228 content = contentOption.call( target[ 0 ], function( response ) { |
225 |
229 |