mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 04:29:21 +03:00
Code refactoring
This commit is contained in:
parent
759327527f
commit
fa795947cf
29 changed files with 478 additions and 890 deletions
9
dev/External/ko.js
vendored
9
dev/External/ko.js
vendored
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue