From b2a9b12fd7846175decca8c4ec10434a49dc26c2 Mon Sep 17 00:00:00 2001 From: Emerson Lackey Date: Thu, 9 Feb 2017 10:57:03 -0500 Subject: [PATCH] [3.2.0] Hot New Release * Now Ember 2.11 Compatible --- CHANGELOG.MD | 5 +++++ addon/components/fm-field.js | 2 +- addon/templates/components/fm-widgets/radio-group.hbs | 2 +- package.json | 2 +- tests/helpers/resolver.js | 2 +- 5 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 6b79162..5bddc0e 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,5 +1,10 @@ # ember-form-master-2000 Change Log +### 3.2.0 + +- [UPGRADE] Now on Ember 2.11. +- Using new `(action 'syntax')` + ### 3.1.0 - [UPGRADE] Upgrade to Ember 2.9.1 and fix issues. diff --git a/addon/components/fm-field.js b/addon/components/fm-field.js index dfd74fc..ad84489 100644 --- a/addon/components/fm-field.js +++ b/addon/components/fm-field.js @@ -122,7 +122,7 @@ export default Ember.Component.extend({ userInteraction() { this.set('shouldShowErrors', true); - if (this.attrs.onUserInteraction){ + if (this.attrs.onUserInteraction && typeof this.attrs.onUserInteraction === 'function'){ this.attrs.onUserInteraction(); } }, diff --git a/addon/templates/components/fm-widgets/radio-group.hbs b/addon/templates/components/fm-widgets/radio-group.hbs index 0990993..554eae7 100644 --- a/addon/templates/components/fm-widgets/radio-group.hbs +++ b/addon/templates/components/fm-widgets/radio-group.hbs @@ -5,6 +5,6 @@ value=value targetValue=(get option widgetAttrs.optionValuePath) label=(get option widgetAttrs.optionLabelPath) - onUserInteraction='radioButtonInteraction' + onUserInteraction=(action 'radioButtonInteraction') }} {{/each}} diff --git a/package.json b/package.json index 847d905..f0d1389 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ember-form-master-2000", - "version": "3.1.0", + "version": "3.2.0", "description": "A simple and flexible Ember-CLI based form builder.", "directories": { "doc": "doc", diff --git a/tests/helpers/resolver.js b/tests/helpers/resolver.js index 28f4ece..e659e27 100644 --- a/tests/helpers/resolver.js +++ b/tests/helpers/resolver.js @@ -1,4 +1,4 @@ -import Resolver from 'ember/resolver'; +import Resolver from 'ember-resolver'; import config from '../../config/environment'; var resolver = Resolver.create();