Browse Source

Removed some references to `vis` namespace

css_transitions^2
jos 10 years ago
parent
commit
86f887e4bb
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      lib/timeline/Range.js
  2. +1
    -1
      lib/timeline/component/ItemSet.js

+ 2
- 2
lib/timeline/Range.js View File

@ -466,8 +466,8 @@ Range.prototype._pointerToDate = function (pointer) {
*/ */
function getPointer (touch, element) { function getPointer (touch, element) {
return { return {
x: touch.pageX - vis.util.getAbsoluteLeft(element),
y: touch.pageY - vis.util.getAbsoluteTop(element)
x: touch.pageX - util.getAbsoluteLeft(element),
y: touch.pageY - util.getAbsoluteTop(element)
}; };
} }

+ 1
- 1
lib/timeline/component/ItemSet.js View File

@ -1211,7 +1211,7 @@ ItemSet.prototype._onAddItem = function (event) {
} }
else { else {
// add item // add item
var xAbs = vis.util.getAbsoluteLeft(this.dom.frame);
var xAbs = util.getAbsoluteLeft(this.dom.frame);
var x = event.gesture.center.pageX - xAbs; var x = event.gesture.center.pageX - xAbs;
var start = this.body.util.toTime(x); var start = this.body.util.toTime(x);
var newItem = { var newItem = {

Loading…
Cancel
Save