Merge pull request #12518 from cannontrodder/types-2.0

expose mock property
This commit is contained in:
Andy
2016-12-27 16:32:14 -05:00
committed by GitHub
2 changed files with 2 additions and 0 deletions

View File

@@ -79,6 +79,7 @@ declare namespace jquery.velocity {
interface VelocityStatic {
Sequences: any;
mock: any;
animate(options: {elements: NodeListOf<HTMLElement>; properties: Properties; options: Options}): any;
animate(elements: HTMLElement|NodeListOf<HTMLElement>, properties: Properties, options: Options): any;
RegisterEffect(name: string, options: RegisterEffectOptions): VelocityStatic;

View File

@@ -23,6 +23,7 @@ function basics_arguments() {
$el.velocity({ top: 50 }, 1000, "swing");
$el.velocity({ top: 50 }, "swing");
$el.velocity({ top: 50 }, 1000, function() { alert("Hi"); });
$.Velocity.mock = 1;
$el.velocity({
properties: { opacity: 1 },