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

Function ref

tools/ngui/static/js/lib/angular.js:6877–6888  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

6875
6876
6877 var ref = function(value) {
6878 if (value && value.then) return value;
6879 return {
6880 then: function(callback) {
6881 var result = defer();
6882 nextTick(function() {
6883 result.resolve(callback(value));
6884 });
6885 return result.promise;
6886 }
6887 };
6888 };
6889
6890
6891 /**

Callers 4

deferFunction · 0.85
whenFunction · 0.85
allFunction · 0.85

Calls 1

deferFunction · 0.85

Tested by

no test coverage detected