Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
51 lines
1 KiB
JavaScript
Executable file
51 lines
1 KiB
JavaScript
Executable file
'use strict';
|
|
/* exported MockContacts */
|
|
/* exported COMMS_APP_ORIGIN */
|
|
|
|
var COMMS_APP_ORIGIN = location.origin;
|
|
|
|
var loadAsyncScriptsDeferred = {};
|
|
loadAsyncScriptsDeferred.promise = new Promise((resolve) => {
|
|
loadAsyncScriptsDeferred.resolve = resolve;
|
|
});
|
|
|
|
var MockContacts = {
|
|
isEmpty: function(prop) {
|
|
return false;
|
|
},
|
|
hideOverlay: function() {
|
|
},
|
|
loadFacebook: function(cb) {
|
|
cb();
|
|
},
|
|
cardStateChanged: function() {
|
|
},
|
|
cancel: function() {},
|
|
utility: function(view, callback, type) {
|
|
callback();
|
|
},
|
|
view: function(view, callback) {
|
|
callback();
|
|
},
|
|
showOverlay: function(title, id) {
|
|
return {
|
|
'setClass': function(clazz) {},
|
|
'setHeaderMsg': function(msg) {},
|
|
'setTotal': function(total) {},
|
|
'update': function() {}
|
|
};
|
|
},
|
|
goBack: function(cb) {
|
|
if (typeof cb === 'function') {
|
|
cb();
|
|
}
|
|
},
|
|
setCurrent: function(ct) {
|
|
|
|
},
|
|
get asyncScriptsLoaded() {
|
|
loadAsyncScriptsDeferred.resolve();
|
|
return loadAsyncScriptsDeferred.promise;
|
|
},
|
|
showForm: function() {}
|
|
};
|