diff --git a/zephyr/static/js/common.js b/zephyr/static/js/common.js index d37d16f0ad..4d63b3985f 100644 --- a/zephyr/static/js/common.js +++ b/zephyr/static/js/common.js @@ -1,7 +1,3 @@ -/*jslint browser: true, devel: true, sloppy: true, - plusplus: true, white: true */ -/*global $: false */ - function autofocus(selector) { $(function () { $(selector)[0].focus(); diff --git a/zephyr/static/js/compose.js b/zephyr/static/js/compose.js index 6fb57c8863..8be202a1b9 100644 --- a/zephyr/static/js/compose.js +++ b/zephyr/static/js/compose.js @@ -1,7 +1,3 @@ -/*jslint browser: true, devel: true, sloppy: true, - plusplus: true, white: true */ -/*global $: false, report_error: false, class_list: false */ - var status_classes = 'alert-error alert-success alert-info'; function show_compose(tabname, focus_area) { diff --git a/zephyr/static/js/debug.js b/zephyr/static/js/debug.js index f239d20ae3..255183c1ba 100644 --- a/zephyr/static/js/debug.js +++ b/zephyr/static/js/debug.js @@ -1,7 +1,3 @@ -/*jslint browser: true, devel: true, sloppy: true, - plusplus: true, white: true */ -/*global $: false */ - /* WARNING: This file is only included when Django's DEBUG = True and your diff --git a/zephyr/static/js/dom_access.js b/zephyr/static/js/dom_access.js index d42944590d..20a5ca7785 100644 --- a/zephyr/static/js/dom_access.js +++ b/zephyr/static/js/dom_access.js @@ -1,7 +1,3 @@ -/*jslint browser: true, devel: true, sloppy: true, - plusplus: true, white: true */ -/*global $: false, narrowed: false */ - function get_next_visible(zephyr_row) { if (zephyr_row === undefined) return []; diff --git a/zephyr/static/js/hotkey.js b/zephyr/static/js/hotkey.js index 6592be7a17..ba1649cb87 100644 --- a/zephyr/static/js/hotkey.js +++ b/zephyr/static/js/hotkey.js @@ -1,6 +1,11 @@ -/*jslint browser: true, devel: true, sloppy: true, - plusplus: true, white: true, undef: true*/ -/*global $: false */ +/*global + process_goto_hotkey: false, + process_compose_hotkey: false, + process_key_in_input: false */ + +// We don't generally treat these as global. +// Tell JSLint they are, to break the mutual recursion. + var pressed_keys = {}; diff --git a/zephyr/static/js/narrow.js b/zephyr/static/js/narrow.js index 8917c7b5b8..0d207e6d00 100644 --- a/zephyr/static/js/narrow.js +++ b/zephyr/static/js/narrow.js @@ -1,7 +1,3 @@ -/*jslint browser: true, devel: true, sloppy: true, - plusplus: true, white: true, undef: true */ -/*global $: false, email: false */ - // Narrowing predicate, or 'false' for the home view. var narrowed = false; diff --git a/zephyr/static/js/setup.js b/zephyr/static/js/setup.js index 17b76c91a1..57b3539a7d 100644 --- a/zephyr/static/js/setup.js +++ b/zephyr/static/js/setup.js @@ -1,9 +1,3 @@ -/*jslint browser: true, devel: true, sloppy: true, - plusplus: true, white: true, regexp: true */ -/*global $: false, jQuery: true, - Spinner: true, Handlebars: true, - have_initial_messages: true, */ - // Miscellaneous early setup. // This is the first of our Javascript files to be included. diff --git a/zephyr/static/js/signup.js b/zephyr/static/js/signup.js index fb87510155..aa42005690 100644 --- a/zephyr/static/js/signup.js +++ b/zephyr/static/js/signup.js @@ -1,7 +1,3 @@ -/*jslint browser: true, devel: true, sloppy: true, - plusplus: true, nomen: true, regexp: true */ -/*global $: false, jQuery: false */ - var disallowed_domains = ['gmail.com']; function validate_email_domain(value, element, param) { diff --git a/zephyr/static/js/subscribe.js b/zephyr/static/js/subscribe.js index 428cb50c07..ddcdfe4859 100644 --- a/zephyr/static/js/subscribe.js +++ b/zephyr/static/js/subscribe.js @@ -1,7 +1,3 @@ -/*jslint browser: true, devel: true, sloppy: true, - plusplus: true, white: true, undef: true */ -/*global $: false */ - function fetch_subs() { $.ajax({ type: 'GET', diff --git a/zephyr/static/js/ui.js b/zephyr/static/js/ui.js index f0fdc04bc2..33ed651d2f 100644 --- a/zephyr/static/js/ui.js +++ b/zephyr/static/js/ui.js @@ -1,7 +1,3 @@ -/*jslint browser: true, devel: true, sloppy: true, - plusplus: true, white: true, undef: true */ -/*global $: false */ - function register_huddle_onclick(zephyr_row, sender) { zephyr_row.find(".zephyr_sender").click(function (e) { prepare_huddle(sender); diff --git a/zephyr/static/js/zephyr.js b/zephyr/static/js/zephyr.js index 4adfa62690..b7399d3e0d 100644 --- a/zephyr/static/js/zephyr.js +++ b/zephyr/static/js/zephyr.js @@ -1,9 +1,3 @@ -/*jslint browser: true, devel: true, sloppy: true, - plusplus: true, nomen: true, white: true, undef: true */ -/*global $: false, initial_pointer: false, email: false, - class_list: false, instance_list: false, people_list: false, - narrowed: false, autocomplete_needs_update: true */ - var zephyr_array = []; var zephyr_dict = {}; var instance_list = [];