remove print statements
This commit is contained in:
parent
e3f900030c
commit
fbeb434e27
11 changed files with 0 additions and 24 deletions
|
@ -68,7 +68,6 @@ Ox.load.Image = function(options, callback) {
|
||||||
that.context.fillStyle = (
|
that.context.fillStyle = (
|
||||||
self.background.length == 3 ? 'rgb' : 'rgba'
|
self.background.length == 3 ? 'rgb' : 'rgba'
|
||||||
) + '(' + self.background.join(', ') + ')';
|
) + '(' + self.background.join(', ') + ')';
|
||||||
Ox.print('----------------------------------', self.width, self.height, that.context.fillStyle)
|
|
||||||
that.context.fillRect(0, 0, self.width, self.height);
|
that.context.fillRect(0, 0, self.width, self.height);
|
||||||
}
|
}
|
||||||
self.imageData = that.context.getImageData(
|
self.imageData = that.context.getImageData(
|
||||||
|
|
|
@ -373,7 +373,6 @@ Ox.load.UI = function(options, callback) {
|
||||||
() -> <u> hide loading screen
|
() -> <u> hide loading screen
|
||||||
@*/
|
@*/
|
||||||
Ox.UI.hideLoadingScreen = function() {
|
Ox.UI.hideLoadingScreen = function() {
|
||||||
//Ox.print('hideLoadingScreen')
|
|
||||||
var $div = $('.OxLoadingScreen'),
|
var $div = $('.OxLoadingScreen'),
|
||||||
error = $div.is('.OxError');
|
error = $div.is('.OxError');
|
||||||
//$div.find('img').remove();
|
//$div.find('img').remove();
|
||||||
|
|
|
@ -125,7 +125,6 @@ Ox.Editable = function(options, self) {
|
||||||
function edit() {
|
function edit() {
|
||||||
var height, width;
|
var height, width;
|
||||||
if (self.options.editable && !self.options.editing) {
|
if (self.options.editable && !self.options.editing) {
|
||||||
//Ox.print('EDIT???')
|
|
||||||
self.options.editing = true;
|
self.options.editing = true;
|
||||||
that.addClass('OxEditing');
|
that.addClass('OxEditing');
|
||||||
self.originalValue = self.options.value;
|
self.originalValue = self.options.value;
|
||||||
|
|
|
@ -154,7 +154,6 @@ Ox.FileInput = function(options, self) {
|
||||||
// try to add small files first
|
// try to add small files first
|
||||||
return a.size - b.size;
|
return a.size - b.size;
|
||||||
}).forEach(function(file) {
|
}).forEach(function(file) {
|
||||||
Ox.print('::', file, exists(file), self.options.value)
|
|
||||||
if (!exists(file) && (
|
if (!exists(file) && (
|
||||||
self.options.maxFiles == -1
|
self.options.maxFiles == -1
|
||||||
|| self.options.value.length < self.options.maxFiles
|
|| self.options.value.length < self.options.maxFiles
|
||||||
|
|
|
@ -120,7 +120,6 @@ Ox.InsertHTMLDialog = function(options, self) {
|
||||||
) + '>' + values.text + '</' + item.id + '>';
|
) + '>' + values.text + '</' + item.id + '>';
|
||||||
};
|
};
|
||||||
} else if (['h1', 'b', 'i', 'code', 's', 'sub', 'sup', 'u'].indexOf(item.id) > -1) {
|
} else if (['h1', 'b', 'i', 'code', 's', 'sub', 'sup', 'u'].indexOf(item.id) > -1) {
|
||||||
//Ox.print(self.options.selection.indexOf('\n'), '?????????')
|
|
||||||
form = [
|
form = [
|
||||||
Ox.Input({
|
Ox.Input({
|
||||||
height: 128,
|
height: 128,
|
||||||
|
@ -208,7 +207,6 @@ Ox.InsertHTMLDialog = function(options, self) {
|
||||||
|
|
||||||
function renderForm() {
|
function renderForm() {
|
||||||
var items = Ox.getObjectById(self.items, self.$select.value()).form;
|
var items = Ox.getObjectById(self.items, self.$select.value()).form;
|
||||||
//Ox.print('??::""""????', self.$select.value())
|
|
||||||
self.$form && self.$form.remove();
|
self.$form && self.$form.remove();
|
||||||
if (items.length) {
|
if (items.length) {
|
||||||
self.$form = Ox.Form({
|
self.$form = Ox.Form({
|
||||||
|
|
|
@ -40,8 +40,6 @@ Ox.IconItem = function(options, self) {
|
||||||
})
|
})
|
||||||
.options(options || {});
|
.options(options || {});
|
||||||
|
|
||||||
//Ox.print('ICON ITEM FIND', self.options.find)
|
|
||||||
|
|
||||||
Ox.extend(self, {
|
Ox.extend(self, {
|
||||||
fontSize: self.options.itemWidth == 64 ? 6 : 9,
|
fontSize: self.options.itemWidth == 64 ? 6 : 9,
|
||||||
infoIsObject: Ox.isObject(self.options.info),
|
infoIsObject: Ox.isObject(self.options.info),
|
||||||
|
|
|
@ -587,7 +587,6 @@ Ox.Map = function(options, self) {
|
||||||
var place = getSelectedPlace(),
|
var place = getSelectedPlace(),
|
||||||
country = Ox.getCountryByGeoname(place.geoname);
|
country = Ox.getCountryByGeoname(place.geoname);
|
||||||
Ox.extend(place, data);
|
Ox.extend(place, data);
|
||||||
//Ox.print('addPlaceToPlaces, place name:', place.name)
|
|
||||||
self.options.selected = place.id;
|
self.options.selected = place.id;
|
||||||
place.countryCode = country ? country.code : '';
|
place.countryCode = country ? country.code : '';
|
||||||
Ox.Log('Map', 'addP2P', data, place);
|
Ox.Log('Map', 'addP2P', data, place);
|
||||||
|
@ -956,7 +955,6 @@ Ox.Map = function(options, self) {
|
||||||
|
|
||||||
function mapChanged() {
|
function mapChanged() {
|
||||||
// gets called after panning or zooming
|
// gets called after panning or zooming
|
||||||
//Ox.print('Map', 'mapChanged');
|
|
||||||
if (self.boundsChanged) {
|
if (self.boundsChanged) {
|
||||||
var bounds = self.map.getBounds(),
|
var bounds = self.map.getBounds(),
|
||||||
southWest = bounds.getSouthWest(),
|
southWest = bounds.getSouthWest(),
|
||||||
|
@ -1158,7 +1156,6 @@ Ox.Map = function(options, self) {
|
||||||
self.places.splice(Ox.getIndexById(self.places, place.id), 1);
|
self.places.splice(Ox.getIndexById(self.places, place.id), 1);
|
||||||
self.resultPlace && self.resultPlace.remove();
|
self.resultPlace && self.resultPlace.remove();
|
||||||
self.resultPlace = place;
|
self.resultPlace = place;
|
||||||
//Ox.print('removed place, place is now', place);
|
|
||||||
place.marker.update();
|
place.marker.update();
|
||||||
place.rectangle.update();
|
place.rectangle.update();
|
||||||
}
|
}
|
||||||
|
@ -1170,7 +1167,6 @@ Ox.Map = function(options, self) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function selectPlace(id, zoom) {
|
function selectPlace(id, zoom) {
|
||||||
//Ox.print('SELECT PLACE', id)
|
|
||||||
// id can be null (deselect)
|
// id can be null (deselect)
|
||||||
var place, selected = getSelectedMarker();
|
var place, selected = getSelectedMarker();
|
||||||
if (!self.loaded) {
|
if (!self.loaded) {
|
||||||
|
|
|
@ -239,8 +239,6 @@ Ox.VideoEditor = function(options, self) {
|
||||||
self.results = [];
|
self.results = [];
|
||||||
self.words = getWords();
|
self.words = getWords();
|
||||||
|
|
||||||
//Ox.print('VIDEO EDITOR OPTIONS', self.options)
|
|
||||||
|
|
||||||
self.$editor = Ox.Element()
|
self.$editor = Ox.Element()
|
||||||
.addClass('OxVideoEditor')
|
.addClass('OxVideoEditor')
|
||||||
.mousedown(function(e) {
|
.mousedown(function(e) {
|
||||||
|
@ -673,7 +671,6 @@ Ox.VideoEditor = function(options, self) {
|
||||||
})
|
})
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
add: function(data) {
|
add: function(data) {
|
||||||
//Ox.print('ADD EVENT REACHED EDITOR', data)
|
|
||||||
addAnnotation(data.layer);
|
addAnnotation(data.layer);
|
||||||
},
|
},
|
||||||
annotationsfont: function(data) {
|
annotationsfont: function(data) {
|
||||||
|
@ -689,7 +686,6 @@ Ox.VideoEditor = function(options, self) {
|
||||||
that.triggerEvent('annotationssort', data);
|
that.triggerEvent('annotationssort', data);
|
||||||
},
|
},
|
||||||
blur: function(data) {
|
blur: function(data) {
|
||||||
//Ox.print('VIDEO EDITOR BLUR')
|
|
||||||
// Only blur if the video editor did not receive the click,
|
// Only blur if the video editor did not receive the click,
|
||||||
// no dialog is open, and no menu was visible
|
// no dialog is open, and no menu was visible
|
||||||
if (
|
if (
|
||||||
|
@ -707,7 +703,6 @@ Ox.VideoEditor = function(options, self) {
|
||||||
that.triggerEvent('define', data);
|
that.triggerEvent('define', data);
|
||||||
},
|
},
|
||||||
edit: function(data) {
|
edit: function(data) {
|
||||||
//Ox.print('EDIT EVENT REACHED EDITOR', data)
|
|
||||||
updateWords('remove');
|
updateWords('remove');
|
||||||
self.editing = true;
|
self.editing = true;
|
||||||
setTimelineState();
|
setTimelineState();
|
||||||
|
@ -1070,7 +1065,6 @@ Ox.VideoEditor = function(options, self) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function removeAnnotation(data) {
|
function removeAnnotation(data) {
|
||||||
//Ox.print('REMOVE EVENT REACHED EDITOR', data)
|
|
||||||
var layer = Ox.getObjectById(self.options.layers, data.layer),
|
var layer = Ox.getObjectById(self.options.layers, data.layer),
|
||||||
index = Ox.getIndexById(layer.items, data.id);
|
index = Ox.getIndexById(layer.items, data.id);
|
||||||
// deselect event will have fired before
|
// deselect event will have fired before
|
||||||
|
@ -1098,7 +1092,6 @@ Ox.VideoEditor = function(options, self) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function selectAnnotation(data, stayAtPosition) {
|
function selectAnnotation(data, stayAtPosition) {
|
||||||
//Ox.print('SELECT ANNOTATION', data);
|
|
||||||
if (Ox.isUndefined(data)) {
|
if (Ox.isUndefined(data)) {
|
||||||
// doubleclick on small timeline
|
// doubleclick on small timeline
|
||||||
data = getAnnotation();
|
data = getAnnotation();
|
||||||
|
@ -1377,7 +1370,6 @@ Ox.VideoEditor = function(options, self) {
|
||||||
function updateWords(action) {
|
function updateWords(action) {
|
||||||
// action can be 'add' or 'remove'
|
// action can be 'add' or 'remove'
|
||||||
var words = [];
|
var words = [];
|
||||||
//Ox.print('....', self.options.selected, getAnnotationValue(self.options.selected))
|
|
||||||
Ox.forEach(Ox.count(Ox.words(
|
Ox.forEach(Ox.count(Ox.words(
|
||||||
getAnnotationValue(self.options.selected)
|
getAnnotationValue(self.options.selected)
|
||||||
)), function(count, value) {
|
)), function(count, value) {
|
||||||
|
|
|
@ -387,7 +387,6 @@ Ox.VideoPanel = function(options, self) {
|
||||||
/*
|
/*
|
||||||
function resizePanel(data) {
|
function resizePanel(data) {
|
||||||
// called on annotations toggle <-- FIXME: NOT TRUE
|
// called on annotations toggle <-- FIXME: NOT TRUE
|
||||||
Ox.print('RESIZEPANEL----------')
|
|
||||||
self.$video.options({
|
self.$video.options({
|
||||||
width: getPlayerWidth()
|
width: getPlayerWidth()
|
||||||
});
|
});
|
||||||
|
|
|
@ -1241,7 +1241,6 @@ Ox.VideoPlayer = function(options, self) {
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
//Ox.print('FIND RESULTS:', results);
|
|
||||||
return results;
|
return results;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1501,7 +1500,6 @@ Ox.VideoPlayer = function(options, self) {
|
||||||
}
|
}
|
||||||
left += control == 'position' ? self.positionWidth : 16
|
left += control == 'position' ? self.positionWidth : 16
|
||||||
});
|
});
|
||||||
//Ox.print('TIMELINE_LEFT = ', left)
|
|
||||||
return left;
|
return left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -590,7 +590,6 @@ Ox.Dialog = function(options, self) {
|
||||||
self.options.height = css.height;
|
self.options.height = css.height;
|
||||||
self.minLeft = 24 - self.options.width;
|
self.minLeft = 24 - self.options.width;
|
||||||
self.minTop = self.hasButtons ? 24 - self.options.height - self.barsHeight : 0;
|
self.minTop = self.hasButtons ? 24 - self.options.height - self.barsHeight : 0;
|
||||||
// Ox.print('DIALOG set css RESIZE')
|
|
||||||
triggerEvent && that.triggerEvent('resize', {
|
triggerEvent && that.triggerEvent('resize', {
|
||||||
width: self.options.width,
|
width: self.options.width,
|
||||||
height: self.options.height
|
height: self.options.height
|
||||||
|
|
Loading…
Reference in a new issue