aboutsummaryrefslogtreecommitdiffstats
path: root/src/directives.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/directives.js')
-rw-r--r--src/directives.js31
1 files changed, 15 insertions, 16 deletions
diff --git a/src/directives.js b/src/directives.js
index e081d179..9f98badb 100644
--- a/src/directives.js
+++ b/src/directives.js
@@ -82,6 +82,15 @@ angularDirective("ng-repeat", function(expression, element){
};
}, {exclusive: true});
+angularDirective("ng-action", function(expression, element){
+ return function(){
+ var self = this;
+ jQuery(element.element).click(function(){
+ self.$eval(expression);
+ });
+ };
+});
+
angularDirective("ng-watch", function(expression, element){
var match = expression.match(/^([^.]*):(.*)$/);
if (!match) {
@@ -93,6 +102,12 @@ angularDirective("ng-watch", function(expression, element){
};
});
+//Styling
+//
+//ng-class
+//ng-class-odd, ng-class-even
+//ng-style
+//ng-show, ng-hide
/////////////////////////////////////////
/////////////////////////////////////////
@@ -103,22 +118,6 @@ angularDirective("ng-watch", function(expression, element){
-//Styling
-//
-//ng-class
-//ng-class-odd, ng-class-even
-//ng-style
-//ng-show, ng-hide
-
-
-angularDirective("action", function(expression, element){
- return function(){
- var self = this;
- jQuery(element).click(function(){
- self.$eval(expression);
- });
- };
-});
//widget related
//ng-validate, ng-required, ng-formatter