Chromium Code Reviews| Index: third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js |
| diff --git a/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js b/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js |
| index 8f53f3ae4adb1669bb2565447044f923bb8ca6af..10c0ff157c8888ad79f29f35246b3333f5c6187c 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeToolbar.js |
| @@ -401,11 +401,12 @@ WebInspector.DeviceModeToolbar.prototype = { |
| */ |
| _deviceListChanged: function() |
| { |
| - if (!this._model.device()) |
| + var model = this._model.device(); |
|
lushnikov
2016/03/04 05:06:58
model => device
kozy
2016/03/04 06:13:29
Done.
|
| + if (!model) |
| return; |
| var devices = this._allDevices(); |
| - if (devices.indexOf(this._model.device()) === -1) { |
| + if (devices.indexOf(model) === -1) { |
| if (devices.length) |
| this._emulateDevice(devices[0]); |
| else |