Skip to content

Commit

Permalink
Removed accidental jQuery dependency in condition
Browse files Browse the repository at this point in the history
Fixes #263, #264
  • Loading branch information
davidlgj committed Feb 25, 2015
1 parent d25bbaa commit 62b7d3f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions dist/schema-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,9 @@ angular.module('schemaForm').provider('schemaFormDecorators',
// Do we have a condition? Then we slap on an ng-if on all children,
// but be nice to existing ng-if.
if (form.condition) {
element.children().each(function() {
var ngIf = this.getAttribute('ng-if');
this.setAttribute(
angular.forEach(element.children(),function(child) {
var ngIf = child.getAttribute('ng-if');
child.setAttribute(
'ng-if',
ngIf ?
'(' + ngIf +
Expand Down
Loading

0 comments on commit 62b7d3f

Please sign in to comment.