jQuery: The interface used to specify easing functions add

This commit is contained in:
Michal Kutil
2013-12-15 23:04:05 +01:00
parent 909a178441
commit 0d2fb0d17a
2 changed files with 13 additions and 0 deletions
+5
View File
@@ -410,6 +410,11 @@ function test_animatedSelector() {
animateIt();
}
function test_easing() {
var result: number = $.easing.linear(3);
var result: number = $.easing.swing(3);
}
function test_append() {
$('.inner').append('<p>Test</p>');
$('.container').append($('h2'));
+8
View File
@@ -348,6 +348,13 @@ interface JQueryEventConstructor {
new (name: string, eventProperties?: any): JQueryEventObject;
}
/**
* The interface used to specify easing functions.
*/
interface JQueryEasing {
linear(p: number): number;
swing(p: number): number;
}
/*
Static members of jQuery (those on $ and jQuery themselves)
@@ -647,6 +654,7 @@ interface JQueryStatic {
Animation(elem: any, properties: any, options: any): any;
easing: JQueryEasing;
}
/*