html-next / ember-hammertime

TouchAction (aka "fastclick") Support for Ember Applications
MIT License
56 stars 23 forks source link

Fix Error: `cannot use `attributeBindings` on a tag-less component` #18

Closed eriktrom closed 8 years ago

eriktrom commented 8 years ago

Modify touch-action mixin to smartly add attributeBindings to prevent assertion error from being thrown in ember beta/canary.

Error is thrown when using 2.8.0-beta.3+cf714821 and 2.9.0-master+3f4ba8d4

eriktrom commented 8 years ago

Example errors: (for reference)

ember.debug.js:25124Uncaught Error: Assertion Failed: You cannot use 
`attributeBindings` on a tag-less component: <demo-project@component:liquid-if::ember512>

ember.debug.js:25124 Uncaught Error: Assertion Failed: You cannot use 
`attributeBindings` on a tag-less component: <demo-project@component:paper-sidenav::ember397>
runspired commented 8 years ago

This addresses #19