Created
November 17, 2013 16:26
-
-
Save csuwildcat/7515139 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| xtag.mixins.responsive = { | |
| lifecycle: { | |
| created: function(){ | |
| // do stuff based on anything you add to | |
| // this tag via: xtag.tags['x-foo'] | |
| } | |
| }, | |
| methods: { | |
| foo: function(){} | |
| }, | |
| accessors: { | |
| bar: { | |
| attribute: {}, | |
| set: function(){ alert('Yay for mixins!'); } | |
| } | |
| } | |
| }); | |
| xtag.register('x-foo', { | |
| mixins: ['responsive'] | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment