mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
These weak type errors were not caught in TS 2.4 RC. The final TS 2.4 will catch weak type errors with primitives, so this PR fixes those now-caught errors.
30 lines
1013 B
TypeScript
30 lines
1013 B
TypeScript
// basic
|
|
$('#example-1').tipsy();
|
|
|
|
// code snippets from http://onehackoranother.com/projects/jquery/tipsy/
|
|
$('#foo').tipsy({gravity: 'n'}); // nw | n | ne | w | e | sw | s | se
|
|
|
|
$('#foo').tipsy({gravity: $.fn.tipsy.autoNS});
|
|
|
|
$('#example-fade').tipsy({fade: true});
|
|
|
|
$('#example-custom-attribute').tipsy({title: 'id'});
|
|
|
|
$('#example-callback').tipsy({title: function() { return this.getAttribute('original-title').toUpperCase(); } });
|
|
|
|
$('#example-fallback').tipsy({fallback: "Where's my tooltip yo'?" });
|
|
|
|
$('#example-html').tipsy({html: true });
|
|
|
|
$('#example-delay').tipsy({delayIn: 500, delayOut: 1000});
|
|
|
|
$(function() {
|
|
$('#focus-example [title]').tipsy({trigger: 'focus', gravity: 'w'});
|
|
});
|
|
|
|
function onclickExample1() { $("#manual-example a[rel=tipsy]").tipsy({ title: "show" }); return false; }
|
|
function onclickExample2() { $("#manual-example a[rel=tipsy]").tipsy({ title: "hide" }); return false; }
|
|
$('#manual-example a[rel=tipsy]').tipsy({trigger: 'manual'});
|
|
|
|
$('a.live-tipsy').tipsy({live: true});
|