Clear up warnings when running test cases.

This commit is contained in:
陈嘉涵
2017-08-16 23:06:28 +08:00
parent 7636f26c27
commit f27fa0122d
9 changed files with 26 additions and 35 deletions
-5
View File
@@ -51,12 +51,10 @@
this.wrap = this.$refs.cell.querySelector('.van-cell-wrapper');
this.leftElm = this.$refs.left;
this.leftWrapElm = this.leftElm.parentNode;
this.leftDefaultTransform = this.translate3d(-this.leftWidth - 1);
this.leftWrapElm.style.webkitTransform = this.leftDefaultTransform;
this.rightElm = this.$refs.right;
this.rightWrapElm = this.rightElm.parentNode;
this.rightDefaultTransform = this.translate3d(this.rightWidth);
this.rightWrapElm.style.webkitTransform = this.rightDefaultTransform;
},
methods: {
@@ -100,14 +98,12 @@
}, 0);
},
startDrag(evt) {
console.log('startDrag')
evt = evt.changedTouches ? evt.changedTouches[0] : evt;
this.dragging = true;
this.start.x = evt.pageX;
this.start.y = evt.pageY;
},
onDrag(evt) {
console.log('onDrag')
if (this.opened) {
!this.swiping && this.swipeMove(0);
this.opened = false;
@@ -132,7 +128,6 @@
this.swipeMove(offsetLeft);
},
endDrag() {
console.log('endDrag')
if (!this.swiping) return;
this.swipeLeaveTransition(this.offsetLeft > 0 ? -1 : 1);
}
-3
View File
@@ -19,7 +19,6 @@ const defaultCallback = action => {
};
const initInstance = () => {
console.log('init instance');
instance = new DialogConstructor({
el: document.createElement('div')
});
@@ -37,7 +36,6 @@ const showNextDialog = () => {
/* istanbul ignore else */
if (!instance.value && dialogQueue.length > 0) {
console.log('shift instance');
currentDialog = dialogQueue.shift();
const { options } = currentDialog;
@@ -57,7 +55,6 @@ const showNextDialog = () => {
var DialogBox = options => {
return new Promise((resolve, reject) => { // eslint-disable-line
console.log('push instance');
dialogQueue.push({
options: { ...options },
callback: options.callback,