MCPcopy
hub / github.com/angular-ui/ui-router / extend

Function extend

test/angular/1.2/angular.js:427–439  ·  view source on GitHub ↗

* @ngdoc function * @name angular.extend * @module ng * @kind function * * @description * Extends the destination object `dst` by copying own enumerable properties from the `src` object(s) * to `dst`. You can specify multiple `src` objects. * * @param {Object} dst Destination object. * @pa

(dst)

Source from the content-addressed store, hash-verified

425 * @returns {Object} Reference to `dst`.
426 */
427function extend(dst) {
428 var h = dst.$$hashKey;
429 forEach(arguments, function(obj) {
430 if (obj !== dst) {
431 forEach(obj, function(value, key) {
432 dst[key] = value;
433 });
434 }
435 });
436
437 setHashKey(dst,h);
438 return dst;
439}
440
441function int(str) {
442 return parseInt(str, 10);

Callers 15

inheritFunction · 0.70
bindJQueryFunction · 0.70
publishExternalAPIFunction · 0.70
jqLiteDataFunction · 0.70
angular.jsFile · 0.70
cacheFactoryFunction · 0.70
compileTemplateUrlFunction · 0.70
cloneAndAnnotateFnFunction · 0.70
$ControllerProviderFunction · 0.70
$httpFunction · 0.70
transformResponseFunction · 0.70
mergeHeadersFunction · 0.70

Calls 2

forEachFunction · 0.70
setHashKeyFunction · 0.70

Tested by

no test coverage detected