Index: Source/devtools/front_end/DOMStorage.js |
diff --git a/Source/devtools/front_end/DOMStorage.js b/Source/devtools/front_end/DOMStorage.js |
index 0cbe6ee9d609b78b4d08b5ef320a7fc9ca3005c2..fc68b6a307f0b46e20e25cd16d21d191fc5e985a 100644 |
--- a/Source/devtools/front_end/DOMStorage.js |
+++ b/Source/devtools/front_end/DOMStorage.js |
@@ -315,6 +315,7 @@ WebInspector.DOMStorageHistory.prototype = { |
*/ |
WebInspector.DOMStorageModel = function() |
{ |
+ /** @type {!Object.<string, !WebInspector.DOMStorage>} */ |
this._storages = {}; |
InspectorBackend.registerDOMStorageDispatcher(new WebInspector.DOMStorageDispatcher(this)); |
DOMStorageAgent.enable(); |
@@ -431,7 +432,7 @@ WebInspector.DOMStorageModel.prototype = { |
*/ |
_domStorageItemUpdated: function(storageId, key, oldValue, newValue) |
{ |
- var domStorage = this._storages[storageId]; |
+ var domStorage = this.storageForId(storageId); |
var storageData = { |
storage: domStorage, |
key: key, |