Skip to content

Instantly share code, notes, and snippets.

@csuwildcat
Created November 17, 2013 16:26
Show Gist options
  • Select an option

  • Save csuwildcat/7515139 to your computer and use it in GitHub Desktop.

Select an option

Save csuwildcat/7515139 to your computer and use it in GitHub Desktop.
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