aboutsummaryrefslogtreecommitdiffstats
path: root/src/widget/form.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/widget/form.js')
-rw-r--r--src/widget/form.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widget/form.js b/src/widget/form.js
index 065ee74d..4608efc1 100644
--- a/src/widget/form.js
+++ b/src/widget/form.js
@@ -56,7 +56,7 @@
angularWidget('form', function(form){
this.descend(true);
this.directives(true);
- return annotate('$formFactory', function($formFactory, formElement) {
+ return ['$formFactory', '$element', function($formFactory, formElement) {
var name = formElement.attr('name'),
parentForm = $formFactory.forElement(formElement),
form = $formFactory(parentForm);
@@ -74,7 +74,7 @@ angularWidget('form', function(form){
formElement[value ? 'addClass' : 'removeClass']('ng-' + name);
});
}
- });
+ }];
});
angularWidget('ng:form', angularWidget('form'));