Code refactoring

This commit is contained in:
RainLoop Team 2014-09-01 20:05:32 +04:00
parent 759327527f
commit fa795947cf
29 changed files with 478 additions and 890 deletions

View file

@ -1,3 +0,0 @@
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
module.exports = require('$')('<div></div>');

View file

@ -1,3 +0,0 @@
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
module.exports = require('$')(window.document);

View file

@ -1,3 +0,0 @@
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
module.exports = require('$')('html');

View file

@ -1,3 +0,0 @@
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
module.exports = require('$')(window);

View file

@ -1,3 +0,0 @@
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
module.exports = require('window')['rainloopAppData'] || {};

View file

@ -1,4 +0,0 @@
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
var w = require('window');
module.exports = w.Notification && w.Notification.requestPermission ? w.Notification : null;

9
dev/External/ko.js vendored
View file

@ -7,9 +7,7 @@
var
window = require('window'),
_ = require('_'),
$ = require('$'),
$win = require('$win'),
$doc = require('$doc')
$ = require('$')
;
ko.bindingHandlers.tooltip = {
@ -99,7 +97,7 @@
}
});
$doc.click(function () {
$(window.document).click(function () {
$oEl.tooltip('hide');
});
@ -314,6 +312,7 @@
var
Utils = require('Utils'),
Globals = require('Globals'),
aValues = ko.utils.unwrapObservable(fValueAccessor()),
iValue = Utils.pInt(aValues[1]),
iSize = 0,
@ -323,7 +322,7 @@
if (0 < iOffset)
{
iOffset += Utils.pInt(aValues[2]);
iSize = $win.height() - iOffset;
iSize = Globals.$win.height() - iOffset;
if (iValue < iSize)
{