From 825cbadf80a7eef3fbba04454086470b6ee6a4d7 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Wed, 31 Aug 2011 22:32:27 -0700 Subject: kill(merge): removing merge fn - dead buggy code with no specs --- src/Angular.js | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src') diff --git a/src/Angular.js b/src/Angular.js index 1952b48e..69d52a2a 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -862,19 +862,6 @@ function toBoolean(value) { return value; } -function merge(src, dst) { - for ( var key in src) { - var value = dst[key]; - var type = typeof value; - if (type == $undefined) { - dst[key] = fromJson(toJson(src[key])); - } else if (type == 'object' && value.constructor != array && - key.substring(0, 1) != "$") { - merge(src[key], value); - } - } -} - /** @name angular.compile */ function compile(element) { -- cgit v1.2.3