Skip to content

Allow to get the right context#6

Open
cristiangz14 wants to merge 1 commit intogeniuscarrier:masterfrom
cristiangz14:patch-1
Open

Allow to get the right context#6
cristiangz14 wants to merge 1 commit intogeniuscarrier:masterfrom
cristiangz14:patch-1

Conversation

@cristiangz14
Copy link

Allow to get the right context in the callback function to access the current element.

Allow to get the right context in the callback function to access the current element.
@cristiangz14
Copy link
Author

Example:

$(".el").autoSave(function(){
console.log(this); //Prints "el" element that trigger the autoSave method.
}, 2000);

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant