MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / extend

Function extend

code/songhop/www/lib/angular/angular.js:405–421  ·  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. If you want to preserve original objects, you can do

(dst)

Source from the content-addressed store, hash-verified

403 * @returns {Object} Reference to `dst`.
404 */
405function extend(dst) {
406 var h = dst.$$hashKey;
407
408 for (var i = 1, ii = arguments.length; i < ii; i++) {
409 var obj = arguments[i];
410 if (obj) {
411 var keys = Object.keys(obj);
412 for (var j = 0, jj = keys.length; j < jj; j++) {
413 var key = keys[j];
414 dst[key] = obj[key];
415 }
416 }
417 }
418
419 setHashKey(dst, h);
420 return dst;
421}
422
423function int(str) {
424 return parseInt(str, 10);

Callers 15

inheritFunction · 0.70
bootstrapFunction · 0.70
bindJQueryFunction · 0.70
publishExternalAPIFunction · 0.70
jqLiteDataFunction · 0.70
angular.jsFile · 0.70
$$jqLiteProviderFunction · 0.70
applyStylesFunction · 0.70
cacheFactoryFunction · 0.70
compileTemplateUrlFunction · 0.70
cloneAndAnnotateFnFunction · 0.70
$ControllerProviderFunction · 0.70

Calls 1

setHashKeyFunction · 0.70

Tested by

no test coverage detected