Skip to content

Commit

Permalink
Merge pull request danhunsaker#46 from jupiterzzz/master
Browse files Browse the repository at this point in the history
Fix `var ctrl is undefined`.
  • Loading branch information
danhunsaker committed Apr 8, 2015
2 parents 2db82c1 + 7cd8d8b commit 0cb12e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dynamic-forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ angular.module('dynform', [])
restrict: 'E',
require: '?ngModel',
link: function (scope, element, attrs, ctrl) {
if (ctrl === null) {
if (!ctrl) {
// Doesn't have an ng-model attribute; nothing to do here.
return;
}
Expand Down

0 comments on commit 0cb12e7

Please sign in to comment.