mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-12 17:03:09 +00:00
kill(merge): removing merge fn - dead buggy code with no specs
This commit is contained in:
parent
93f96a16f6
commit
825cbadf80
1 changed files with 0 additions and 13 deletions
|
|
@ -862,19 +862,6 @@ function toBoolean(value) {
|
||||||
return 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 */
|
/** @name angular.compile */
|
||||||
function compile(element) {
|
function compile(element) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue