aboutsummaryrefslogtreecommitdiffstats
path: root/src/directives.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/directives.js')
-rw-r--r--src/directives.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/directives.js b/src/directives.js
index 6e565b83..1d5b36f2 100644
--- a/src/directives.js
+++ b/src/directives.js
@@ -111,7 +111,8 @@ angularDirective("ng:init", function(expression){
this.contacts.push({type:'email', value:'yourname@example.org'});
},
removeContact: function(contactToRemove) {
- angular.module.ng.$filter.remove(this.contacts, contactToRemove);
+ var index = this.contacts.indexOf(contactToRemove);
+ this.contacts.splice(index, 1);
},
clearContact: function(contact) {
contact.type = 'phone';