[FIX] Avoid reserved keywords as method names

bzr revid: ddm@openerp.com-20131121114922-w731pvjnnvqzxu42
This commit is contained in:
ddm 2013-11-21 12:49:22 +01:00
parent 135345bf2a
commit 56e19c374f
5 changed files with 9 additions and 9 deletions

View File

@ -127,7 +127,7 @@
];
return this._super();
},
continue: function () {
resume: function () {
return (this.isCurrentStep('part-2') || this.isCurrentStep('show-tutorials')) && !this.tour.ended();
},
});

View File

@ -27,7 +27,7 @@
$('.popover.tour').remove();
},
start: function () {
if (this.continue() || ((this.currentStepIndex() === 0) && !this.tour.ended())) {
if (this.resume() || ((this.currentStepIndex() === 0) && !this.tour.ended())) {
this.tour.start();
}
},
@ -68,7 +68,7 @@
window.location.replace(newUrl);
}
},
continue: function () {
resume: function () {
// Override if necessary
return this.currentStepIndex() === 0;
},

View File

@ -107,11 +107,11 @@
];
return this._super();
},
continue: function () {
resume: function () {
return this.isCurrentStep('post-page') && !this.tour.ended();
},
trigger: function () {
return (this.continue() && this.testUrl(/^\/blog\/[0-9]+\/\?enable_editor=1/)) || this._super();
return (this.resume() && this.testUrl(/^\/blog\/[0-9]+\/\?enable_editor=1/)) || this._super();
},
});

View File

@ -74,11 +74,11 @@
];
return this._super();
},
continue: function () {
resume: function () {
return this.isCurrentStep('event-page') && !this.tour.ended();
},
trigger: function () {
return (this.continue() && this.testUrl(/^\/event\/[0-9]+\/\?enable_editor=1/)) || this._super();
return (this.resume() && this.testUrl(/^\/event\/[0-9]+\/\?enable_editor=1/)) || this._super();
},
});

View File

@ -83,11 +83,11 @@
];
return this._super();
},
continue: function () {
resume: function () {
return this.isCurrentStep('product-page') && !this.tour.ended();
},
trigger: function (url) {
return (this.continue() && this.testUrl(/^\/shop\/product\/[0-9]+\/\?enable_editor=1/)) || this._super();
return (this.resume() && this.testUrl(/^\/shop\/product\/[0-9]+\/\?enable_editor=1/)) || this._super();
},
});