Last active
January 26, 2016 21:08
-
-
Save blasten/e93e6d585feaf67e53d8 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
<dom-module id="x-foo"> | |
<div>test</div> | |
</dom-module> | |
<script> | |
Polymer.X_CONSTANT = 1; | |
Polymer({ | |
is: 'x-foo', | |
properties: { | |
foo: { | |
type: String | |
} | |
}, | |
observers: [ | |
'_setup(foo)' | |
], | |
_setup: function() { | |
var ctx = Polymer.X_CONSTANT; | |
console.debug('ctx', ctx); | |
//Polymer.X.CONSTANT = 2; | |
} | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment