Bug 1241720 - Part 2: Fix eslint error with missing space after a generator star r=me
authorGabriel Luong <gabriel.luong@gmail.com>
Wed, 20 Apr 2016 17:57:35 -0400
changeset 354483 a6623a30d98d63a54ac754b28e55e986643e6c93
parent 354482 6d48e6b9edc64b919c1055073406bf991a3f16cd
child 354484 19b7ad9ea786210086a720051c2122dd543153cb
child 354764 12a27b31a15f8635cb1c8c8b13204adbc21b1f66
child 354787 3f5d168ebdecd7fb9e7f05c56dee29fe4d6e1a35
child 354997 09b2e76bfda1ca20a6477d0ac6b80d1bab284e41
child 354998 db038fc92bc979211c6f6d1146bee4f9e8368215
child 354999 6e500b52d5d2f245963d5f4784952cdb557ba0f7
child 355176 44c0f29fbd6a8c04620d8428293062bc2cb27743
child 355614 b84abb97f48bfb29fcddcbdc688dc6b22a510ba0
child 355615 c770258f2373c57d2531a48edf57635c2ae13152
child 355620 2c58543f16f92a25c0c869ecb4d5d3df4cdddc54
child 355621 e4f74e3d1d286e1107e5a1764ae8ea3fd5ff3ff2
push id16088
push usergkruglov@mozilla.com
push dateWed, 20 Apr 2016 23:45:23 +0000
reviewersme
bugs1241720
milestone48.0a1
Bug 1241720 - Part 2: Fix eslint error with missing space after a generator star r=me
devtools/client/responsive.html/devices.js
devtools/client/responsive.html/index.js
devtools/client/responsive.html/test/unit/test_update_device_displayed.js
--- 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,