GNOME Bugzilla – Bug 647060
Don't use global variables
Last modified: 2011-05-09 18:54:58 UTC
See patch
Created attachment 185438 [details] [review] Don't declare global variables Scope all the variables to the block or the function, including those introduced by for..in.
Review of attachment 185438 [details] [review]: How did you notice this by the way? Did you see a "name" variable in the global object or something? ::: modules/tweener/tweener.js @@ +250,1 @@ There's other places in the code where we don't declare "var name", like removeTweensByTime and _splitTweens. Want to fix those in this patch too?
Created attachment 185652 [details] [review] Don't declare global variables Scope all the variables to the block or the function, including those introduced by for..in.
Review of attachment 185652 [details] [review]: Looks good, thanks
Attachment 185652 [details] pushed as 3d6b668 - Don't declare global variables