Skip to content

Instantly share code, notes, and snippets.

@secretrobotron
Created December 16, 2013 23:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save secretrobotron/7996599 to your computer and use it in GitHub Desktop.
Save secretrobotron/7996599 to your computer and use it in GitHub Desktop.
Polymer('ben', {
ready: function () {
this.foo = 0;
},
count: function () {
this.foo++;
}
});
@bczulauf
Copy link

How is this different from

Polymer('ben', {
foo = 0,
count: function () {
this.foo++;
}
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment