diff options
| author | Juuso Lapinlampi <wub@partyvan.eu> | 2015-11-18 14:46:22 +0100 |
|---|---|---|
| committer | Juuso Lapinlampi <wub@partyvan.eu> | 2015-11-18 14:46:22 +0100 |
| commit | a46c5d3a4d7d7bae4e1001923806cfcee8d71b35 (patch) | |
| tree | a256357f9c7b9c1db9376624600aca19fa1aac85 | |
| parent | d527b2d6769bdc0d2cd6744f1bda9d8da74ef6a6 (diff) | |
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 <avail@pomf.se>
| -rw-r--r-- | js/cabinet.js | 4 |
1 files changed, 2 insertions, 2 deletions
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); }; |
