Jump to content


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 :)

Link to comment
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
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.