remove print statements

This commit is contained in:
rolux 2012-06-15 11:47:18 +02:00
parent e3f900030c
commit fbeb434e27
11 changed files with 0 additions and 24 deletions

View file

@ -68,7 +68,6 @@ Ox.load.Image = function(options, callback) {
that.context.fillStyle = (
self.background.length == 3 ? 'rgb' : 'rgba'
) + '(' + self.background.join(', ') + ')';
Ox.print('----------------------------------', self.width, self.height, that.context.fillStyle)
that.context.fillRect(0, 0, self.width, self.height);
}
self.imageData = that.context.getImageData(

View file

@ -373,7 +373,6 @@ Ox.load.UI = function(options, callback) {
() -> <u> hide loading screen
@*/
Ox.UI.hideLoadingScreen = function() {
//Ox.print('hideLoadingScreen')
var $div = $('.OxLoadingScreen'),
error = $div.is('.OxError');
//$div.find('img').remove();

View file

@ -125,7 +125,6 @@ Ox.Editable = function(options, self) {
function edit() {
var height, width;
if (self.options.editable && !self.options.editing) {
//Ox.print('EDIT???')
self.options.editing = true;
that.addClass('OxEditing');
self.originalValue = self.options.value;

View file

@ -154,7 +154,6 @@ Ox.FileInput = function(options, self) {
// try to add small files first
return a.size - b.size;
}).forEach(function(file) {
Ox.print('::', file, exists(file), self.options.value)
if (!exists(file) && (
self.options.maxFiles == -1
|| self.options.value.length < self.options.maxFiles

View file

@ -120,7 +120,6 @@ Ox.InsertHTMLDialog = function(options, self) {
) + '>' + values.text + '</' + item.id + '>';
};
} else if (['h1', 'b', 'i', 'code', 's', 'sub', 'sup', 'u'].indexOf(item.id) > -1) {
//Ox.print(self.options.selection.indexOf('\n'), '?????????')
form = [
Ox.Input({
height: 128,
@ -208,7 +207,6 @@ Ox.InsertHTMLDialog = function(options, self) {
function renderForm() {
var items = Ox.getObjectById(self.items, self.$select.value()).form;
//Ox.print('??::""""????', self.$select.value())
self.$form && self.$form.remove();
if (items.length) {
self.$form = Ox.Form({

View file

@ -40,8 +40,6 @@ Ox.IconItem = function(options, self) {
})
.options(options || {});
//Ox.print('ICON ITEM FIND', self.options.find)
Ox.extend(self, {
fontSize: self.options.itemWidth == 64 ? 6 : 9,
infoIsObject: Ox.isObject(self.options.info),

View file

@ -587,7 +587,6 @@ Ox.Map = function(options, self) {
var place = getSelectedPlace(),
country = Ox.getCountryByGeoname(place.geoname);
Ox.extend(place, data);
//Ox.print('addPlaceToPlaces, place name:', place.name)
self.options.selected = place.id;
place.countryCode = country ? country.code : '';
Ox.Log('Map', 'addP2P', data, place);
@ -956,7 +955,6 @@ Ox.Map = function(options, self) {
function mapChanged() {
// gets called after panning or zooming
//Ox.print('Map', 'mapChanged');
if (self.boundsChanged) {
var bounds = self.map.getBounds(),
southWest = bounds.getSouthWest(),
@ -1158,7 +1156,6 @@ Ox.Map = function(options, self) {
self.places.splice(Ox.getIndexById(self.places, place.id), 1);
self.resultPlace && self.resultPlace.remove();
self.resultPlace = place;
//Ox.print('removed place, place is now', place);
place.marker.update();
place.rectangle.update();
}
@ -1170,7 +1167,6 @@ Ox.Map = function(options, self) {
}
function selectPlace(id, zoom) {
//Ox.print('SELECT PLACE', id)
// id can be null (deselect)
var place, selected = getSelectedMarker();
if (!self.loaded) {

View file

@ -239,8 +239,6 @@ Ox.VideoEditor = function(options, self) {
self.results = [];
self.words = getWords();
//Ox.print('VIDEO EDITOR OPTIONS', self.options)
self.$editor = Ox.Element()
.addClass('OxVideoEditor')
.mousedown(function(e) {
@ -673,7 +671,6 @@ Ox.VideoEditor = function(options, self) {
})
.bindEvent({
add: function(data) {
//Ox.print('ADD EVENT REACHED EDITOR', data)
addAnnotation(data.layer);
},
annotationsfont: function(data) {
@ -689,7 +686,6 @@ Ox.VideoEditor = function(options, self) {
that.triggerEvent('annotationssort', data);
},
blur: function(data) {
//Ox.print('VIDEO EDITOR BLUR')
// Only blur if the video editor did not receive the click,
// no dialog is open, and no menu was visible
if (
@ -707,7 +703,6 @@ Ox.VideoEditor = function(options, self) {
that.triggerEvent('define', data);
},
edit: function(data) {
//Ox.print('EDIT EVENT REACHED EDITOR', data)
updateWords('remove');
self.editing = true;
setTimelineState();
@ -1070,7 +1065,6 @@ Ox.VideoEditor = function(options, self) {
}
function removeAnnotation(data) {
//Ox.print('REMOVE EVENT REACHED EDITOR', data)
var layer = Ox.getObjectById(self.options.layers, data.layer),
index = Ox.getIndexById(layer.items, data.id);
// deselect event will have fired before
@ -1098,7 +1092,6 @@ Ox.VideoEditor = function(options, self) {
}
function selectAnnotation(data, stayAtPosition) {
//Ox.print('SELECT ANNOTATION', data);
if (Ox.isUndefined(data)) {
// doubleclick on small timeline
data = getAnnotation();
@ -1377,7 +1370,6 @@ Ox.VideoEditor = function(options, self) {
function updateWords(action) {
// action can be 'add' or 'remove'
var words = [];
//Ox.print('....', self.options.selected, getAnnotationValue(self.options.selected))
Ox.forEach(Ox.count(Ox.words(
getAnnotationValue(self.options.selected)
)), function(count, value) {

View file

@ -387,7 +387,6 @@ Ox.VideoPanel = function(options, self) {
/*
function resizePanel(data) {
// called on annotations toggle <-- FIXME: NOT TRUE
Ox.print('RESIZEPANEL----------')
self.$video.options({
width: getPlayerWidth()
});

View file

@ -1241,7 +1241,6 @@ Ox.VideoPlayer = function(options, self) {
};
});
}
//Ox.print('FIND RESULTS:', results);
return results;
}
@ -1501,7 +1500,6 @@ Ox.VideoPlayer = function(options, self) {
}
left += control == 'position' ? self.positionWidth : 16
});
//Ox.print('TIMELINE_LEFT = ', left)
return left;
}

View file

@ -590,7 +590,6 @@ Ox.Dialog = function(options, self) {
self.options.height = css.height;
self.minLeft = 24 - self.options.width;
self.minTop = self.hasButtons ? 24 - self.options.height - self.barsHeight : 0;
// Ox.print('DIALOG set css RESIZE')
triggerEvent && that.triggerEvent('resize', {
width: self.options.width,
height: self.options.height