From a46c5d3a4d7d7bae4e1001923806cfcee8d71b35 Mon Sep 17 00:00:00 2001 From: Juuso Lapinlampi Date: Wed, 18 Nov 2015 13:46:22 +0000 Subject: Rename identifier "$" to "cabinet" in cabinet.js Very short identifier names usually make the code harder to read and potentially less maintainable. Fixes two ESLint id-length errors using airbnb/legacy config. Suggested-by: avail --- js/cabinet.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/cabinet.js') diff --git a/js/cabinet.js b/js/cabinet.js index 09f4e71..b820d9b 100644 --- a/js/cabinet.js +++ b/js/cabinet.js @@ -21,8 +21,8 @@ */ /* jshint browser:true, jquery:true */ -(function($) { - $.hasFileAPI = function hasFileAPI() { +(function(cabinet) { + cabinet.hasFileAPI = function hasFileAPI() { return Boolean(window.FormData); }; -- cgit v1.2.3