aboutsummaryrefslogtreecommitdiffstats
path: root/src/moveToAngularCom/directivesAngularCom.js
diff options
context:
space:
mode:
authorMisko Hevery2010-07-26 15:35:02 -0700
committerMisko Hevery2010-07-26 15:35:02 -0700
commit94759f4c2cab91d35a18159a00fbdaec0af79aa9 (patch)
tree38435026de22c0fc586f17708eff8b7082fdbd51 /src/moveToAngularCom/directivesAngularCom.js
parentb288cb08b450cd28423595de82693631cc6d6dda (diff)
downloadangular.js-94759f4c2cab91d35a18159a00fbdaec0af79aa9.tar.bz2
remove old unneded files
Diffstat (limited to 'src/moveToAngularCom/directivesAngularCom.js')
-rw-r--r--src/moveToAngularCom/directivesAngularCom.js29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/moveToAngularCom/directivesAngularCom.js b/src/moveToAngularCom/directivesAngularCom.js
deleted file mode 100644
index 84032bdd..00000000
--- a/src/moveToAngularCom/directivesAngularCom.js
+++ /dev/null
@@ -1,29 +0,0 @@
-
-angular.directive("auth", function(expression, element){
- return function(){
- if(expression == "eager") {
- this.$users.fetchCurrent();
- }
- };
-});
-
-
-//expression = "book=Book:{year=2000}"
-angular.directive("entity", function(expression, element){
- //parse expression, ignore element
- var entityName; // "Book";
- var instanceName; // "book";
- var defaults; // {year: 2000};
-
- parse(expression);
-
- return function(){
- this[entityName] = this.$datastore.entity(entityName, defaults);
- this[instanceName] = this[entityName]();
- this.$watch("$anchor."+instanceName, function(newAnchor){
- this[instanceName] = this[entityName].get(this.$anchor[instanceName]);
- });
- };
-});
-
-