Skip to content

Instantly share code, notes, and snippets.

@coderberry
Created February 18, 2014 18:51
Show Gist options
  • Save coderberry/9077289 to your computer and use it in GitHub Desktop.
Save coderberry/9077289 to your computer and use it in GitHub Desktop.
// Update LinkView to allow data attributes
Em.LinkView.reopen({
init: function() {
this._super();
var self = this;
Em.keys(this).forEach(function(key) {
if (key.substr(0, 5) === 'data-') {
self.get('attributeBindings').pushObject(key);
}
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment