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) {
maxlen: 79,
indent: 2,
maxerr: 3,
unparam: true,
predef: [
'window',
'document'
]
},
exclude: '<%= global_config.src %>/webodf_editor/**/*.*'
}
}
},
......
/*global console, rJS, RSVP, Handlebars, initGadgetMixin */
/*global rJS, RSVP, Handlebars, initGadgetMixin */
/*jslint nomen: true */
(function (window, rJS, RSVP, Handlebars, initGadgetMixin) {
"use strict";
......@@ -27,7 +27,7 @@
/////////////////////////////////////////////////////////////////
// declared methods
/////////////////////////////////////////////////////////////////
.declareMethod("render", function (options) {
.declareMethod("render", function () {
var gadget = this;
return gadget.aq_allDocs({"select_list": ["title", "modified"]})
.push(function (document_list) {
......
/*global console, rJS, RSVP, jQuery,
/*global rJS, RSVP, jQuery,
promiseEventListener, initGadgetMixin */
(function (window, rJS, RSVP, $, promiseEventListener,
initGadgetMixin) {
......@@ -94,7 +94,7 @@
"_id": gadget.props.jio_key
});
})
.push(function (result) {
.push(function () {
return gadget.whoWantToDisplayHome();
})
.push(function (url) {
......
/*global console, rJS, RSVP, Handlebars, initGadgetMixin */
/*global rJS, RSVP, Handlebars, initGadgetMixin */
/*jslint nomen: true */
(function (window, rJS, RSVP, Handlebars, initGadgetMixin) {
"use strict";
......
/*global console, rJS, RSVP, initGadgetMixin */
/*global rJS, RSVP, initGadgetMixin */
(function (window, rJS, RSVP, initGadgetMixin) {
"use strict";
......
......@@ -143,7 +143,7 @@
"_mimetype": "application/json"
});
})
.push(function (result) {
.push(function () {
return gadget.whoWantToDisplayThisDocument(
gadget.props.jio_key,
"view_result"
......
/*global console, rJS, RSVP, initGadgetMixin */
/*global rJS, RSVP, initGadgetMixin */
(function (window, rJS, RSVP, initGadgetMixin) {
"use strict";
......
/*global console, rJS, RSVP, initGadgetMixin */
(function (window, rJS, RSVP, initGadgetMixin) {
/*global rJS, initGadgetMixin */
(function (window, rJS, initGadgetMixin) {
"use strict";
var gadget_klass = rJS(window);
......@@ -32,4 +32,4 @@
});
}(window, rJS, RSVP, initGadgetMixin));
}(window, rJS, initGadgetMixin));
/*global console, rJS, RSVP, Handlebars,
/*global rJS, Handlebars,
initGadgetMixin */
/*jslint nomen: true */
(function (window, rJS, RSVP, Handlebars,
(function (window, rJS, Handlebars,
initGadgetMixin) {
"use strict";
......@@ -151,4 +151,4 @@
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 */
/*jslint nomen: true */
/*jslint nomen: true, unparam: true */
(function (window, rJS, RSVP, $, gantt,
initGadgetMixin) {
"use strict";
......
/*global console, rJS, RSVP, moment, initGadgetMixin */
/*global rJS, RSVP, moment, initGadgetMixin */
/*jslint nomen: true */
(function (window, rJS, RSVP, moment, initGadgetMixin) {
"use strict";
......
/*global console, rJS, RSVP, jQuery, initGadgetMixin */
/*jslint nomen: true */
(function (window, rJS, RSVP, $, initGadgetMixin) {
/*global rJS, jQuery, initGadgetMixin */
/*jslint nomen: true, unparam: true */
(function (window, rJS, $, initGadgetMixin) {
"use strict";
function queue_stat_widget(output_data) {
......@@ -52,4 +52,4 @@
this.props.series
);
});
}(window, rJS, RSVP, jQuery, initGadgetMixin));
}(window, rJS, jQuery, initGadgetMixin));
/*global console, rJS, RSVP, jQuery, initGadgetMixin */
(function (window, rJS, RSVP, $, initGadgetMixin) {
/*global rJS, jQuery, initGadgetMixin */
/*jslint unparam: true */
(function (window, rJS, $, initGadgetMixin) {
"use strict";
function station_utilisation_graph_widget(output_data) {
......@@ -158,4 +159,4 @@
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 */
(function (window, $, rJS, RSVP, Handlebars, initGadgetMixin) {
"use strict";
......@@ -313,7 +313,7 @@
});
})
.allowPublicAcquisition("whoWantToDisplayHome", function (param_list) {
.allowPublicAcquisition("whoWantToDisplayHome", function () {
// Hey, I want to display some URL
return this.aq_pleasePublishMyState({});
})
......@@ -337,7 +337,7 @@
result: param_list[1]
});
})
.allowPublicAcquisition("getConfigurationDict", function (param_list) {
.allowPublicAcquisition("getConfigurationDict", function () {
return this.props.configuration_dict;
})
......@@ -345,7 +345,7 @@
// ready
/////////////////////////////////////////////////////////////////
// Precompile the templates while loading the first gadget instance
.ready(function (g) {
.ready(function () {
if (panel_template === undefined) {
// XXX Only works as root gadget
panel_template = Handlebars.compile(
......
/*global console, RSVP, FileReader */
/*global RSVP, FileReader */
(function (window, RSVP, FileReader) {
"use strict";
......
/*global asyncTest, rJS, JSON, QUnit, jQuery*/
/*global rJS, JSON, QUnit, jQuery*/
(function (asyncTest, rJS, JSON, QUnit, $) {
(function (rJS, JSON, QUnit, $) {
"use strict";
var start = QUnit.start,
stop = QUnit.stop,
......@@ -56,4 +56,4 @@
});
});
}(asyncTest, rJS, JSON, QUnit, jQuery));
}(rJS, JSON, QUnit, jQuery));
/*global rJS, jIO, console */
/*global rJS, jIO */
(function (rJS, jIO) {
"use strict";
......
......@@ -18,6 +18,7 @@
* ==========================================================================*/
/*global RSVP, rJS, $, jsPlumb, Handlebars*/
/*jslint unparam: true */
(function (RSVP, rJS, $, jsPlumb, Handlebars) {
"use strict";
......
/*global window, rJS, console, RSVP, Handlebars */
/*global window, rJS, Handlebars */
/*jslint nomen: true */
(function (window, rJS, console, RSVP, Handlebars) {
(function (window, rJS, Handlebars) {
"use strict";
/////////////////////////////////////////////////////////////////
......@@ -46,4 +46,4 @@
select.innerHTML += tmp;
});
}(window, rJS, console, RSVP, Handlebars));
}(window, rJS, Handlebars));
/*global window, rJS, RSVP */
(function (window, rJS, RSVP) {
/*global window, rJS */
(function (window, rJS) {
"use strict";
rJS(window)
......@@ -24,4 +24,4 @@
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