use [0] instead of .[0]

This commit is contained in:
rolux 2012-06-26 18:01:47 +02:00
parent fb6c956250
commit 969e0553b4
4 changed files with 8 additions and 8 deletions

View file

@ -603,7 +603,7 @@ Ox.Calendar = function(options, self) {
function dragstart(data) { function dragstart(data) {
//if ($(e.target).is(':not(.OxLine > .OxEvent)')) { //if ($(e.target).is(':not(.OxLine > .OxEvent)')) {
self.drag = { self.drag = {
top: self.$container.$element[0].scrollTop, top: self.$container[0].scrollTop,
x: data.clientX x: data.clientX
}; };
//} //}
@ -1150,14 +1150,14 @@ Ox.Calendar = function(options, self) {
function scrollBy(delta) { function scrollBy(delta) {
scrollTo( scrollTo(
self.$container.$element[0].scrollTop self.$container[0].scrollTop
+ delta * Math.round(self.$container.height() / 2), true + delta * Math.round(self.$container.height() / 2), true
); );
} }
function scrollTo(top, animate) { function scrollTo(top, animate) {
var containerHeight = self.$container.height(), var containerHeight = self.$container.height(),
scrollTop = self.$container.$element[0].scrollTop, scrollTop = self.$container[0].scrollTop,
min = 0, min = 0,
max = self.contentHeight - containerHeight, max = self.contentHeight - containerHeight,
top = Ox.limit(top, min, max), top = Ox.limit(top, min, max),
@ -1168,7 +1168,7 @@ Ox.Calendar = function(options, self) {
scrollTop: top scrollTop: top
}, ms); }, ms);
} else { } else {
self.$container.$element[0].scrollTop = top; self.$container[0].scrollTop = top;
} }
} }

View file

@ -35,8 +35,8 @@ Ox.GarbageCollection = (function() {
@*/ @*/
that.debug = function() { that.debug = function() {
var classNames = {}, sorted = []; var classNames = {}, sorted = [];
Ox.forEach(Ox.UI.elements, function(element, id) { Ox.forEach(Ox.UI.elements, function($element, id) {
var className = element.$element[0].className; var className = $element[0].className;
classNames[className] = (classNames[className] || 0) + 1; classNames[className] = (classNames[className] || 0) + 1;
}); });
Ox.forEach(classNames, function(count, className) { Ox.forEach(classNames, function(count, className) {

View file

@ -860,7 +860,7 @@ Ox.Map = function(options, self) {
self.center = mapBounds ? mapBounds.getCenter() : new google.maps.LatLng(0, 0); self.center = mapBounds ? mapBounds.getCenter() : new google.maps.LatLng(0, 0);
self.zoom = self.minZoom; self.zoom = self.minZoom;
that.map = self.map = new google.maps.Map(self.$map.$element[0], { that.map = self.map = new google.maps.Map(self.$map[0], {
center: self.center, center: self.center,
disableDefaultUI: true, disableDefaultUI: true,
disableDoubleClickZoom: true, disableDoubleClickZoom: true,

View file

@ -58,7 +58,7 @@ Ox.VideoEditorPlayer = function(options, self) {
playing: playing playing: playing
}) })
.appendTo(that); .appendTo(that);
self.video = self.$video.$element[0]; self.video = self.$video[0];
} else { } else {
self.$video = $('<img>') self.$video = $('<img>')
.css({ .css({