Skip to content

Instantly share code, notes, and snippets.

@frankiefu
Created April 23, 2015 23:18
Show Gist options
  • Save frankiefu/57a7e92bf10e43caa8eb to your computer and use it in GitHub Desktop.
Save frankiefu/57a7e92bf10e43caa8eb to your computer and use it in GitHub Desktop.
<script>
Polymer.FooBehavior = {
properties: {
bar: {
type: String,
readOnly: true
}
}
}
</script>
<script>
Polymer({
is: 'x-app',
behaviors: [Polymer.FooBehavior],
test: function() {
console.log(this._setBar); // output is undefined but it shouldn't
}
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment