MCPcopy Create free account
hub / github.com/apache/cloudstack / extend

Function extend

tools/ngui/static/js/lib/angular.js:231–243  ·  view source on GitHub ↗

* @ngdoc function * @name angular.extend * @function * * @description * Extends the destination object `dst` by copying all of the properties from the `src` object(s) * to `dst`. You can specify multiple `src` objects. * * @param {Object} dst Destination object. * @param {...Object} src Sou

(dst)

Source from the content-addressed store, hash-verified

229 * @returns {Object} Reference to `dst`.
230 */
231function extend(dst) {
232 var h = dst.$$hashKey;
233 forEach(arguments, function(obj){
234 if (obj !== dst) {
235 forEach(obj, function(value, key){
236 dst[key] = value;
237 });
238 }
239 });
240
241 setHashKey(dst,h);
242 return dst;
243}
244
245function int(str) {
246 return parseInt(str, 10);

Callers 15

inheritFunction · 0.85
bindJQueryFunction · 0.85
publishExternalAPIFunction · 0.85
JQLiteDataFunction · 0.85
angular.jsFile · 0.85
cacheFactoryFunction · 0.85
compileTemplateUrlFunction · 0.85
$ControllerProviderFunction · 0.85
readIdentFunction · 0.85
_fieldAccessFunction · 0.85
_objectIndexFunction · 0.85
$RouteProviderFunction · 0.85

Calls 2

forEachFunction · 0.85
setHashKeyFunction · 0.85

Tested by

no test coverage detected