Created
October 10, 2013 16:16
-
-
Save bramswenson/6921127 to your computer and use it in GitHub Desktop.
make ember link views accept data- attributes
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
Em.LinkView.reopen | |
init: -> | |
@_super() | |
Em.keys(@).forEach (key) => | |
if key.substr(0, 5) == 'data-' | |
@get('attributeBindings').pushObject(key) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment