2013-11-16 06:21:12 +08:00
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
var
|
|
|
|
/**
|
|
|
|
* @type {Object}
|
|
|
|
*/
|
|
|
|
Consts = {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @type {Object}
|
|
|
|
*/
|
|
|
|
Enums = {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @type {Object}
|
|
|
|
*/
|
|
|
|
NotificationI18N = {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @type {Object.<Function>}
|
|
|
|
*/
|
|
|
|
Utils = {},
|
2014-06-17 03:56:11 +08:00
|
|
|
|
2013-11-16 06:21:12 +08:00
|
|
|
/**
|
|
|
|
* @type {Object.<Function>}
|
|
|
|
*/
|
|
|
|
Plugins = {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @type {Object.<Function>}
|
|
|
|
*/
|
|
|
|
Base64 = {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @type {Object}
|
|
|
|
*/
|
|
|
|
Globals = {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @type {Object}
|
|
|
|
*/
|
|
|
|
ViewModels = {
|
|
|
|
'settings': [],
|
|
|
|
'settings-removed': [],
|
|
|
|
'settings-disabled': []
|
|
|
|
},
|
|
|
|
|
2014-04-13 08:32:07 +08:00
|
|
|
/**
|
|
|
|
* @type {Array}
|
|
|
|
*/
|
|
|
|
BootstrapDropdowns = [],
|
|
|
|
|
2013-11-16 06:21:12 +08:00
|
|
|
/**
|
|
|
|
* @type {*}
|
|
|
|
*/
|
|
|
|
kn = null,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @type {Object}
|
|
|
|
*/
|
|
|
|
AppData = window['rainloopAppData'] || {},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @type {Object}
|
|
|
|
*/
|
|
|
|
I18n = window['rainloopI18N'] || {},
|
|
|
|
|
|
|
|
$html = $('html'),
|
2014-06-17 03:56:11 +08:00
|
|
|
|
2014-05-08 00:04:32 +08:00
|
|
|
// $body = $('body'),
|
2013-11-16 06:21:12 +08:00
|
|
|
|
|
|
|
$window = $(window),
|
|
|
|
|
|
|
|
$document = $(window.document),
|
|
|
|
|
|
|
|
NotificationClass = window.Notification && window.Notification.requestPermission ? window.Notification : null
|
2014-06-17 03:56:11 +08:00
|
|
|
;
|