Browse Source

remove extra console.logs

codeClimate
Yotam Berkowitz 8 years ago
parent
commit
4f49135313
3 changed files with 0 additions and 5 deletions
  1. +0
    -1
      lib/timeline/Core.js
  2. +0
    -2
      lib/timeline/Timeline.js
  3. +0
    -2
      lib/timeline/component/item/RangeItem.js

+ 0
- 1
lib/timeline/Core.js View File

@ -537,7 +537,6 @@ Core.prototype.fit = function(options) {
var interval = range.max - range.min; var interval = range.max - range.min;
var min = new Date(range.min.valueOf() - interval * 0.01); var min = new Date(range.min.valueOf() - interval * 0.01);
var max = new Date(range.max.valueOf() + interval * 0.01); var max = new Date(range.max.valueOf() + interval * 0.01);
console.log(min, max);
var animation = (options && options.animation !== undefined) ? options.animation : true; var animation = (options && options.animation !== undefined) ? options.animation : true;
this.range.setRange(min, max, animation); this.range.setRange(min, max, animation);
}; };

+ 0
- 2
lib/timeline/Timeline.js View File

@ -415,8 +415,6 @@ Timeline.prototype.getItemRange = function () {
var start = getStart(item); var start = getStart(item);
var end = getEnd(item); var end = getEnd(item);
console.log(start, end)
console.log(this.options);
if (this.options.rtl) { if (this.options.rtl) {
var startSide = start - (item.getWidthRight() + 10) * factor; var startSide = start - (item.getWidthRight() + 10) * factor;

+ 0
- 2
lib/timeline/component/item/RangeItem.js View File

@ -123,7 +123,6 @@ RangeItem.prototype.redraw = function() {
this.dirty = false; this.dirty = false;
} }
console.log("redrawing range");
this._repaintDeleteButton(dom.box); this._repaintDeleteButton(dom.box);
this._repaintDragLeft(); this._repaintDragLeft();
this._repaintDragRight(); this._repaintDragRight();
@ -308,7 +307,6 @@ RangeItem.prototype._repaintDragLeft = function () {
* @protected * @protected
*/ */
RangeItem.prototype._repaintDragRight = function () { RangeItem.prototype._repaintDragRight = function () {
console.log("repainting!!!!");
if (this.selected && this.options.editable.updateTime && !this.dom.dragRight) { if (this.selected && this.options.editable.updateTime && !this.dom.dragRight) {
// create and show drag area // create and show drag area
var dragRight = document.createElement('div'); var dragRight = document.createElement('div');

Loading…
Cancel
Save