forked from 0x2620/oxjs
use [0] instead of .[0]
This commit is contained in:
parent
fb6c956250
commit
969e0553b4
4 changed files with 8 additions and 8 deletions
|
|
@ -603,7 +603,7 @@ Ox.Calendar = function(options, self) {
|
|||
function dragstart(data) {
|
||||
//if ($(e.target).is(':not(.OxLine > .OxEvent)')) {
|
||||
self.drag = {
|
||||
top: self.$container.$element[0].scrollTop,
|
||||
top: self.$container[0].scrollTop,
|
||||
x: data.clientX
|
||||
};
|
||||
//}
|
||||
|
|
@ -1150,14 +1150,14 @@ Ox.Calendar = function(options, self) {
|
|||
|
||||
function scrollBy(delta) {
|
||||
scrollTo(
|
||||
self.$container.$element[0].scrollTop
|
||||
self.$container[0].scrollTop
|
||||
+ delta * Math.round(self.$container.height() / 2), true
|
||||
);
|
||||
}
|
||||
|
||||
function scrollTo(top, animate) {
|
||||
var containerHeight = self.$container.height(),
|
||||
scrollTop = self.$container.$element[0].scrollTop,
|
||||
scrollTop = self.$container[0].scrollTop,
|
||||
min = 0,
|
||||
max = self.contentHeight - containerHeight,
|
||||
top = Ox.limit(top, min, max),
|
||||
|
|
@ -1168,7 +1168,7 @@ Ox.Calendar = function(options, self) {
|
|||
scrollTop: top
|
||||
}, ms);
|
||||
} else {
|
||||
self.$container.$element[0].scrollTop = top;
|
||||
self.$container[0].scrollTop = top;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue