Skip to content

Commit 62b7d3f

Browse files
committed
Removed accidental jQuery dependency in condition
Fixes #263, #264
1 parent d25bbaa commit 62b7d3f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

dist/schema-form.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,9 @@ angular.module('schemaForm').provider('schemaFormDecorators',
290290
// Do we have a condition? Then we slap on an ng-if on all children,
291291
// but be nice to existing ng-if.
292292
if (form.condition) {
293-
element.children().each(function() {
294-
var ngIf = this.getAttribute('ng-if');
295-
this.setAttribute(
293+
angular.forEach(element.children(),function(child) {
294+
var ngIf = child.getAttribute('ng-if');
295+
child.setAttribute(
296296
'ng-if',
297297
ngIf ?
298298
'(' + ngIf +

0 commit comments

Comments
 (0)