Skip to content

Additional args missed #7

Description

@martinborthiry

Nice tool, but:

Don't forget that the function in setTimeout and setInterval can recive aditional arguments.

Example:
var additionalVar1 = 11, additionalVar2 = 22;
setTimeout( function( a, b){ .... }, 1000, additionalVar1, additionalVar2);

// inside function "a" and "b" will be 11 and 22.

Is not common, but in some cases it is very usefull.
best regards

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions