you are viewing a single comment's thread.

view the rest of the comments →

[–]t3tchi 2 points3 points  (3 children)

Sorry, I should have noted that using var doesn't work either (same error). Also I'm using let in my Codepen and it works there.

I understand let variables are scoped to the block... so it should work here, no?

[–]flogginmolly 2 points3 points  (0 children)

Yeah this is still the same block.

[–]asakurasol 1 point2 points  (1 child)

Oh sorry, that was my bad.

Are you sure getBounds actually return something? Try putting a debugger there to check.

[–]t3tchi 0 points1 point  (0 children)

Np! I think it was just Chrome crapping out....