Commit c3d84233 authored by Ryan Herbert's avatar Ryan Herbert

tips.js fix duplicate variable

prev was already defined in function display, so renaming the parameter
prev to previous fixes the quality issue.
parent 12560805
......@@ -73,15 +73,15 @@ TipsOfTheDay.prototype = {
return this.seen.indexOf(id) < 0;
},
display: function(container, prev) {
if (typeof prev === "undefined") {
prev = false;
display: function(container, previous) {
if (typeof previous === "undefined") {
previous = false;
}
var self = this;
var tip = null;
if (prev) {
if (previous) {
tip = this.load_previous_unseen();
} else {
tip = this.load_next_unseen();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment