You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When looking at TweenMax object in Devtools they appear as r() for TweenMax and s() for TimelineMax.
The Functions can be easily names so they appear in their right names in the console, either by not using anonymous functions (i.e. using TweenMax = function TweenMax()) or by setting the 'name' property of the function.
It sounds like you're using the minified version. Have you tried using the regular (uncompressed) one while you're debugging? I'm not sure it'd be worth the extra kb to add method.name = (...) to the various classes, especially since it's an ECMAScript 6 specific thing. Perhaps I'm misunderstanding your suggestion though.
Look at the mdn link, they explain how to set names for functions and I'm sure you can instruct minifiers not to change the names. All I want is to see the right name in the console even using the minified version.
Btw, the name property is supported by everyone but ie.
—
Sent from Mailbox
It sounds like you're using the minified version. Have you tried using the regular (uncompressed) one while you're debugging? I'm not sure it'd be worth the extra kb to add method.name = (...) to the various classes, especially since it's an ECMAScript 6 specific thing. Perhaps I'm misunderstanding your suggestion though.
Reply to this email directly or view it on GitHub: #52 (comment)
When looking at TweenMax object in Devtools they appear as r() for TweenMax and s() for TimelineMax.
The Functions can be easily names so they appear in their right names in the console, either by not using anonymous functions (i.e. using TweenMax = function TweenMax()) or by setting the 'name' property of the function.
See here:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name
The text was updated successfully, but these errors were encountered: