Skip to content

Use var keyword when declaring local variable so it doesn't leak to global scope. - #1838

Merged
sorvell merged 1 commit into
Polymer:masterfrom
trevordixon:patch-1
Jun 12, 2015
Merged

sorvell merged 1 commit into
Polymer:masterfrom
trevordixon:patch-1

Conversation

@trevordixon

Copy link
Copy Markdown
Contributor

It looks like var was forgotten in a couple places, causing v and style to leak to the global scope.

@sorvell

sorvell commented Jun 12, 2015

Copy link
Copy Markdown
Contributor

LGTM, Good catch, we'll also add 'use strict'; to avoid this in the future.

sorvell pushed a commit that referenced this pull request Jun 12, 2015
Use var keyword when declaring local variable so it doesn't leak to global scope.
@sorvell
sorvell merged commit 19758b7 into Polymer:master Jun 12, 2015
@trevordixon
trevordixon deleted the patch-1 branch June 12, 2015 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants