Jump to content
Jonathan

delayedCall() method being used with scope

Recommended Posts

hello.. has anyone used the delayedCall() method with scope?  I looked in the API but was seeing if anyone had an example they might want to share.. i was trying to pass an element to use for the scope of this in the function, but im probably missing something in how its implemented

 

any help will be highly appreciated, thanks :)

Share this post


Link to post
Share on other sites

sorry i just figured it out and answered my own question:

function test(){
	console.log(this); // outputs $box element
}

var $box = $('#box');
TweenMax.delayedCall(2, test, null, $box);

thanks :P

  • Like 3

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.