Use an explicit action name in action helper

No Issue
- Clicking on the body of a modal dialog causes an
  unhandled exception in the console.  Add an explicit
  action name to the helper.
This commit is contained in:
Jason Williams 2014-12-26 02:26:55 +00:00
parent 4c218c29ca
commit 26b7102451
2 changed files with 3 additions and 2 deletions

View File

@ -29,7 +29,8 @@ var ModalDialog = Ember.Component.extend({
confirm: function (type) {
this.sendAction('confirm' + type);
this.close();
}
},
noBubble: Ember.K
},
klass: Ember.computed('type', 'style', function () {

View File

@ -1,6 +1,6 @@
<div class="modal-container js-modal-container" {{action "closeModal"}}>
<article {{bind-attr class="klass :js-modal"}}>
<section class="modal-content" {{action bubbles=false preventDefault=false}}>
<section class="modal-content" {{action "noBubble" bubbles=false preventDefault=false}}>
{{#if title}}<header class="modal-header"><h1>{{title}}</h1></header>{{/if}}
{{#if showClose}}<a class="close" href="" title="Close" {{action "closeModal"}}><span class="hidden">Close</span></a>{{/if}}
<section class="modal-body">