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) {
//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;
}
}

View file

@ -35,8 +35,8 @@ Ox.GarbageCollection = (function() {
@*/
that.debug = function() {
var classNames = {}, sorted = [];
Ox.forEach(Ox.UI.elements, function(element, id) {
var className = element.$element[0].className;
Ox.forEach(Ox.UI.elements, function($element, id) {
var className = $element[0].className;
classNames[className] = (classNames[className] || 0) + 1;
});
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.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,
disableDefaultUI: true,
disableDoubleClickZoom: true,

View file

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