Skip to content

Instantly share code, notes, and snippets.

@acorncom
Created November 5, 2015 20:40
Show Gist options
  • Select an option

  • Save acorncom/ee3626653d2777a75678 to your computer and use it in GitHub Desktop.

Select an option

Save acorncom/ee3626653d2777a75678 to your computer and use it in GitHub Desktop.
sample-dasherized-problem
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle',
actions: {
anActionName: function() {
alert("in here");
}
}
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
{{outlet}}
<br>
<div {{action "anActionName" on="doubleClick"}}>
click me, does work
</div>
<br><br>
<div {{action "anActionName" on="double-click"}}>
click me, doesn't work
</div>
<br>
{
"version": "0.4.16",
"EmberENV": {
"FEATURES": {}
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "https://cdnjs.cloudflare.com/ajax/libs/ember.js/2.1.0/ember.debug.js",
"ember-data": "https://cdnjs.cloudflare.com/ajax/libs/ember-data.js/2.1.0/ember-data.js",
"ember-template-compiler": "https://cdnjs.cloudflare.com/ajax/libs/ember.js/2.1.0/ember-template-compiler.js"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment