Bug 1241720 - Part 2: Fix eslint error with missing space after a generator star r=me
--- a/devtools/client/responsive.html/devices.js
+++ b/devtools/client/responsive.html/devices.js
@@ -12,17 +12,17 @@ const { addDevice, addDeviceType } = req
const DISPLAYED_DEVICES_PREF = "devtools.responsive.html.displayedDeviceList";
/**
* Get the device catalog and load the devices onto the store.
*
* @param {Function} dispatch
* Action dispatch function
*/
-let initDevices = Task.async(function*(dispatch) {
+let initDevices = Task.async(function* (dispatch) {
let deviceList = loadDeviceList();
let devices = yield GetDevices();
for (let type of devices.TYPES) {
dispatch(addDeviceType(type));
for (let device of devices[type]) {
if (device.os == "fxos") {
continue;
--- a/devtools/client/responsive.html/index.js
+++ b/devtools/client/responsive.html/index.js
@@ -29,17 +29,17 @@ const { changeLocation } = require("./ac
const { addViewport, resizeViewport } = require("./actions/viewports");
let bootstrap = {
telemetry: new Telemetry(),
store: null,
- init: Task.async(function*() {
+ init: Task.async(function* () {
// Load a special UA stylesheet to reset certain styles such as dropdown
// lists.
loadSheet(window,
"resource://devtools/client/responsive.html/responsive-ua.css",
"agent");
this.telemetry.toolOpened("responsive");
let store = this.store = Store();
yield initDevices(this.dispatch.bind(this));
--- a/devtools/client/responsive.html/test/unit/test_update_device_displayed.js
+++ b/devtools/client/responsive.html/test/unit/test_update_device_displayed.js
@@ -6,17 +6,17 @@
// Test updating the device `displayed` property
const {
addDevice,
addDeviceType,
updateDeviceDisplayed,
} = require("devtools/client/responsive.html/actions/devices");
-add_task(function*() {
+add_task(function* () {
let store = Store();
const { getState, dispatch } = store;
let device = {
"name": "Firefox OS Flame",
"width": 320,
"height": 570,
"pixelRatio": 1.5,