mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
CommonJS (research/3)
This commit is contained in:
parent
586abbb802
commit
06bb124379
99 changed files with 51037 additions and 42961 deletions
|
|
@ -5,10 +5,13 @@
|
|||
'use strict';
|
||||
|
||||
var
|
||||
Plugins = {},
|
||||
Utils = require('./Utils.js'),
|
||||
Remote = require('../Remote.js'),
|
||||
RL = require('../RL.js')
|
||||
Plugins = {
|
||||
__boot: null,
|
||||
__remote: null,
|
||||
__data: null
|
||||
},
|
||||
_ = require('../External/underscore.js'),
|
||||
Utils = require('./Utils.js')
|
||||
;
|
||||
|
||||
/**
|
||||
|
|
@ -72,7 +75,12 @@
|
|||
*/
|
||||
Plugins.mainSettingsGet = function (sName)
|
||||
{
|
||||
return RL ? RL().settingsGet(sName) : null;
|
||||
if (Plugins.__boot)
|
||||
{
|
||||
return Plugins.__boot.settingsGet(sName);
|
||||
}
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -85,9 +93,9 @@
|
|||
*/
|
||||
Plugins.remoteRequest = function (fCallback, sAction, oParameters, iTimeout, sGetAdd, aAbortActions)
|
||||
{
|
||||
if (Remote)
|
||||
if (Plugins.__remote)
|
||||
{
|
||||
Remote().defaultRequest(fCallback, sAction, oParameters, iTimeout, sGetAdd, aAbortActions);
|
||||
Plugins.__remote.defaultRequest(fCallback, sAction, oParameters, iTimeout, sGetAdd, aAbortActions);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue