Skip to content

Commit

Permalink
Changed to omit an argument that is the same as the default value.
Browse files Browse the repository at this point in the history
  • Loading branch information
7131 committed May 6, 2024
1 parent e893cc8 commit e172097
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions controller.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Controller class
const Controller = function() {
window.addEventListener("load", this._initialize.bind(this), false);
window.addEventListener("load", this._initialize.bind(this));
}

// Controller prototype
Expand All @@ -17,9 +17,9 @@ Controller.prototype = {
const stop = document.getElementById("stop");

// button events
analyze.addEventListener("click", this._analyze.bind(this), false);
start.addEventListener("click", this._start.bind(this), false);
stop.addEventListener("click", this._stop.bind(this), false);
analyze.addEventListener("click", this._analyze.bind(this));
start.addEventListener("click", this._start.bind(this));
stop.addEventListener("click", this._stop.bind(this));

// analyze the query string
const params = new URLSearchParams(window.location.search.toLowerCase());
Expand Down

0 comments on commit e172097

Please sign in to comment.