Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions js/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@
* @constructor
* @param {String} label The label to show the user.
*/
var Backend = function (label) {
let Backend = function (label) {
this.label = label;
this.elements = {};
};

/**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this specific space was un-intentional?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

* Adds an item to the backend.
*
* @param {String} id The item ID. It would help if this was unique.
Expand All @@ -38,7 +39,7 @@
*
* @return {Array}
*/
Backend.prototype.toTypeaheadArray = function () {
Backend.prototype.toTypeaheadArray = () => {
var array = [];

$.each(this.elements, function (_, element) {
Expand Down Expand Up @@ -112,7 +113,7 @@
*
* @return {Boolean}
*/
var canCache = function () {
var canCache = () => {
try {
return ('localStorage' in window && window['localStorage'] !== null && "JSON" in window && window["JSON"] !== null);
} catch (e) {
Expand Down