Commit c48010a9 authored by Romain Courteaud's avatar Romain Courteaud Committed by Jérome Perrin

Drop unused variable.

parent bb2b46ff
...@@ -44,13 +44,11 @@ module.exports = function (grunt) { ...@@ -44,13 +44,11 @@ module.exports = function (grunt) {
maxlen: 79, maxlen: 79,
indent: 2, indent: 2,
maxerr: 3, maxerr: 3,
unparam: true,
predef: [ predef: [
'window', 'window',
'document' 'document'
] ]
}, }
exclude: '<%= global_config.src %>/webodf_editor/**/*.*'
} }
}, },
......
/*global console, rJS, RSVP, Handlebars, initGadgetMixin */ /*global rJS, RSVP, Handlebars, initGadgetMixin */
/*jslint nomen: true */ /*jslint nomen: true */
(function (window, rJS, RSVP, Handlebars, initGadgetMixin) { (function (window, rJS, RSVP, Handlebars, initGadgetMixin) {
"use strict"; "use strict";
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
///////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////
// declared methods // declared methods
///////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////
.declareMethod("render", function (options) { .declareMethod("render", function () {
var gadget = this; var gadget = this;
return gadget.aq_allDocs({"select_list": ["title", "modified"]}) return gadget.aq_allDocs({"select_list": ["title", "modified"]})
.push(function (document_list) { .push(function (document_list) {
......
/*global console, rJS, RSVP, jQuery, /*global rJS, RSVP, jQuery,
promiseEventListener, initGadgetMixin */ promiseEventListener, initGadgetMixin */
(function (window, rJS, RSVP, $, promiseEventListener, (function (window, rJS, RSVP, $, promiseEventListener,
initGadgetMixin) { initGadgetMixin) {
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
"_id": gadget.props.jio_key "_id": gadget.props.jio_key
}); });
}) })
.push(function (result) { .push(function () {
return gadget.whoWantToDisplayHome(); return gadget.whoWantToDisplayHome();
}) })
.push(function (url) { .push(function (url) {
......
/*global console, rJS, RSVP, Handlebars, initGadgetMixin */ /*global rJS, RSVP, Handlebars, initGadgetMixin */
/*jslint nomen: true */ /*jslint nomen: true */
(function (window, rJS, RSVP, Handlebars, initGadgetMixin) { (function (window, rJS, RSVP, Handlebars, initGadgetMixin) {
"use strict"; "use strict";
......
/*global console, rJS, RSVP, initGadgetMixin */ /*global rJS, RSVP, initGadgetMixin */
(function (window, rJS, RSVP, initGadgetMixin) { (function (window, rJS, RSVP, initGadgetMixin) {
"use strict"; "use strict";
......
...@@ -143,7 +143,7 @@ ...@@ -143,7 +143,7 @@
"_mimetype": "application/json" "_mimetype": "application/json"
}); });
}) })
.push(function (result) { .push(function () {
return gadget.whoWantToDisplayThisDocument( return gadget.whoWantToDisplayThisDocument(
gadget.props.jio_key, gadget.props.jio_key,
"view_result" "view_result"
......
/*global console, rJS, RSVP, initGadgetMixin */ /*global rJS, RSVP, initGadgetMixin */
(function (window, rJS, RSVP, initGadgetMixin) { (function (window, rJS, RSVP, initGadgetMixin) {
"use strict"; "use strict";
......
/*global console, rJS, RSVP, initGadgetMixin */ /*global rJS, initGadgetMixin */
(function (window, rJS, RSVP, initGadgetMixin) { (function (window, rJS, initGadgetMixin) {
"use strict"; "use strict";
var gadget_klass = rJS(window); var gadget_klass = rJS(window);
...@@ -32,4 +32,4 @@ ...@@ -32,4 +32,4 @@
}); });
}(window, rJS, RSVP, initGadgetMixin)); }(window, rJS, initGadgetMixin));
/*global console, rJS, RSVP, Handlebars, /*global rJS, Handlebars,
initGadgetMixin */ initGadgetMixin */
/*jslint nomen: true */ /*jslint nomen: true */
(function (window, rJS, RSVP, Handlebars, (function (window, rJS, Handlebars,
initGadgetMixin) { initGadgetMixin) {
"use strict"; "use strict";
...@@ -151,4 +151,4 @@ ...@@ -151,4 +151,4 @@
gadget.props.element.innerHTML = result; gadget.props.element.innerHTML = result;
}); });
}); });
}(window, rJS, RSVP, Handlebars, initGadgetMixin)); }(window, rJS, Handlebars, initGadgetMixin));
/*global console, rJS, RSVP, jQuery, gantt, /*global rJS, RSVP, jQuery, gantt,
initGadgetMixin */ initGadgetMixin */
/*jslint nomen: true */ /*jslint nomen: true, unparam: true */
(function (window, rJS, RSVP, $, gantt, (function (window, rJS, RSVP, $, gantt,
initGadgetMixin) { initGadgetMixin) {
"use strict"; "use strict";
......
/*global console, rJS, RSVP, moment, initGadgetMixin */ /*global rJS, RSVP, moment, initGadgetMixin */
/*jslint nomen: true */ /*jslint nomen: true */
(function (window, rJS, RSVP, moment, initGadgetMixin) { (function (window, rJS, RSVP, moment, initGadgetMixin) {
"use strict"; "use strict";
......
/*global console, rJS, RSVP, jQuery, initGadgetMixin */ /*global rJS, jQuery, initGadgetMixin */
/*jslint nomen: true */ /*jslint nomen: true, unparam: true */
(function (window, rJS, RSVP, $, initGadgetMixin) { (function (window, rJS, $, initGadgetMixin) {
"use strict"; "use strict";
function queue_stat_widget(output_data) { function queue_stat_widget(output_data) {
...@@ -52,4 +52,4 @@ ...@@ -52,4 +52,4 @@
this.props.series this.props.series
); );
}); });
}(window, rJS, RSVP, jQuery, initGadgetMixin)); }(window, rJS, jQuery, initGadgetMixin));
/*global console, rJS, RSVP, jQuery, initGadgetMixin */ /*global rJS, jQuery, initGadgetMixin */
(function (window, rJS, RSVP, $, initGadgetMixin) { /*jslint unparam: true */
(function (window, rJS, $, initGadgetMixin) {
"use strict"; "use strict";
function station_utilisation_graph_widget(output_data) { function station_utilisation_graph_widget(output_data) {
...@@ -158,4 +159,4 @@ ...@@ -158,4 +159,4 @@
this.props.result_list[1] this.props.result_list[1]
); );
}); });
}(window, rJS, RSVP, jQuery, initGadgetMixin)); }(window, rJS, jQuery, initGadgetMixin));
/*global console, jQuery, rJS, RSVP, alert, Handlebars, initGadgetMixin */ /*global jQuery, rJS, RSVP, alert, Handlebars, initGadgetMixin */
/*jslint nomen: true */ /*jslint nomen: true */
(function (window, $, rJS, RSVP, Handlebars, initGadgetMixin) { (function (window, $, rJS, RSVP, Handlebars, initGadgetMixin) {
"use strict"; "use strict";
...@@ -313,7 +313,7 @@ ...@@ -313,7 +313,7 @@
}); });
}) })
.allowPublicAcquisition("whoWantToDisplayHome", function (param_list) { .allowPublicAcquisition("whoWantToDisplayHome", function () {
// Hey, I want to display some URL // Hey, I want to display some URL
return this.aq_pleasePublishMyState({}); return this.aq_pleasePublishMyState({});
}) })
...@@ -337,7 +337,7 @@ ...@@ -337,7 +337,7 @@
result: param_list[1] result: param_list[1]
}); });
}) })
.allowPublicAcquisition("getConfigurationDict", function (param_list) { .allowPublicAcquisition("getConfigurationDict", function () {
return this.props.configuration_dict; return this.props.configuration_dict;
}) })
...@@ -345,7 +345,7 @@ ...@@ -345,7 +345,7 @@
// ready // ready
///////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////
// Precompile the templates while loading the first gadget instance // Precompile the templates while loading the first gadget instance
.ready(function (g) { .ready(function () {
if (panel_template === undefined) { if (panel_template === undefined) {
// XXX Only works as root gadget // XXX Only works as root gadget
panel_template = Handlebars.compile( panel_template = Handlebars.compile(
......
/*global console, RSVP, FileReader */ /*global RSVP, FileReader */
(function (window, RSVP, FileReader) { (function (window, RSVP, FileReader) {
"use strict"; "use strict";
......
/*global asyncTest, rJS, JSON, QUnit, jQuery*/ /*global rJS, JSON, QUnit, jQuery*/
(function (asyncTest, rJS, JSON, QUnit, $) { (function (rJS, JSON, QUnit, $) {
"use strict"; "use strict";
var start = QUnit.start, var start = QUnit.start,
stop = QUnit.stop, stop = QUnit.stop,
...@@ -56,4 +56,4 @@ ...@@ -56,4 +56,4 @@
}); });
}); });
}(asyncTest, rJS, JSON, QUnit, jQuery)); }(rJS, JSON, QUnit, jQuery));
/*global rJS, jIO, console */ /*global rJS, jIO */
(function (rJS, jIO) { (function (rJS, jIO) {
"use strict"; "use strict";
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
* ==========================================================================*/ * ==========================================================================*/
/*global RSVP, rJS, $, jsPlumb, Handlebars*/ /*global RSVP, rJS, $, jsPlumb, Handlebars*/
/*jslint unparam: true */
(function (RSVP, rJS, $, jsPlumb, Handlebars) { (function (RSVP, rJS, $, jsPlumb, Handlebars) {
"use strict"; "use strict";
......
/*global window, rJS, console, RSVP, Handlebars */ /*global window, rJS, Handlebars */
/*jslint nomen: true */ /*jslint nomen: true */
(function (window, rJS, console, RSVP, Handlebars) { (function (window, rJS, Handlebars) {
"use strict"; "use strict";
///////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////
...@@ -46,4 +46,4 @@ ...@@ -46,4 +46,4 @@
select.innerHTML += tmp; select.innerHTML += tmp;
}); });
}(window, rJS, console, RSVP, Handlebars)); }(window, rJS, Handlebars));
/*global window, rJS, RSVP */ /*global window, rJS */
(function (window, rJS, RSVP) { (function (window, rJS) {
"use strict"; "use strict";
rJS(window) rJS(window)
...@@ -24,4 +24,4 @@ ...@@ -24,4 +24,4 @@
return result; return result;
}); });
}(window, rJS, RSVP)); }(window, rJS));
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment