aboutsummaryrefslogtreecommitdiffstats
path: root/src/Angular.js
diff options
context:
space:
mode:
authorMisko Hevery2011-11-03 21:14:04 -0700
committerMisko Hevery2011-11-14 20:31:14 -0800
commitc27aba4354c69c4a67fab587a59a8079cc9edc91 (patch)
tree7ea9f170c197dddcfb8014fc85437523090d18a4 /src/Angular.js
parentdd9151e522220b438074e55c72f47ed2a8da9933 (diff)
downloadangular.js-c27aba4354c69c4a67fab587a59a8079cc9edc91.tar.bz2
refactor(api): remove type augmentation
BREAK: - remove angular.[Object/Array/String/Function] - in templates [].$filter(predicate) and friends need to change to [] | filter:predicate
Diffstat (limited to 'src/Angular.js')
-rw-r--r--src/Angular.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Angular.js b/src/Angular.js
index 17aa2d4a..fcb13881 100644
--- a/src/Angular.js
+++ b/src/Angular.js
@@ -560,6 +560,13 @@ function indexOf(array, obj) {
return -1;
}
+function arrayRemove(array, value) {
+ var index = indexOf(array, value);
+ if (index >=0)
+ array.splice(index, 1);
+ return value;
+ }
+
function isLeafNode (node) {
if (node) {
switch (node.nodeName) {