Skip to content

Commit

Permalink
Merge pull request #14 from vectart/patch-1
Browse files Browse the repository at this point in the history
Context might not have get method
  • Loading branch information
Duncan Walker committed Mar 30, 2015
2 parents f72b01e + 38d2629 commit 19e9a11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vendor/ember-easy-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ Ember.Handlebars.registerHelper('input-field', function(property, options) {
options.hash.type = 'number';
} else if (propertyType(property) === 'date' || (!Ember.isNone(get(context,property)) && get(context,property).constructor === Date)) {
options.hash.type = 'date';
} else if (propertyType(property) === 'boolean' || (!Ember.isNone(context.get(property)) && get(context,property).constructor === Boolean)) {
} else if (propertyType(property) === 'boolean' || (!Ember.isNone(get(context,property)) && get(context,property).constructor === Boolean)) {
options.hash.checkedBinding = property;
return EasyFormShims.viewHelper(context, Ember.EasyForm.Checkbox, options);
}
Expand Down

0 comments on commit 19e9a11

Please sign in to comment.