Created
April 23, 2015 23:18
-
-
Save frankiefu/57a7e92bf10e43caa8eb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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