OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 }, | 356 }, |
357 | 357 |
358 get statusBarItems() | 358 get statusBarItems() |
359 { | 359 { |
360 return [this._refreshButton.element, this._clearButton.element]; | 360 return [this._refreshButton.element, this._clearButton.element]; |
361 }, | 361 }, |
362 | 362 |
363 clear: function() | 363 clear: function() |
364 { | 364 { |
365 this._dataGrid.rootNode().removeChildren(); | 365 this._dataGrid.rootNode().removeChildren(); |
366 for (var i = 0; i < this._entries.length; ++i) { | |
367 this._entries[i].key.release(); | |
368 this._entries[i].primaryKey.release(); | |
369 this._entries[i].value.release(); | |
370 } | |
371 this._entries = []; | 366 this._entries = []; |
372 }, | 367 }, |
373 | 368 |
374 __proto__: WebInspector.VBox.prototype | 369 __proto__: WebInspector.VBox.prototype |
375 } | 370 } |
376 | 371 |
377 /** | 372 /** |
378 * @constructor | 373 * @constructor |
379 * @extends {WebInspector.DataGridNode} | 374 * @extends {WebInspector.DataGridNode} |
380 * @param {!Object.<string, *>} data | 375 * @param {!Object.<string, *>} data |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 break; | 421 break; |
427 default: | 422 default: |
428 contents.classList.add("primitive-value"); | 423 contents.classList.add("primitive-value"); |
429 contents.appendChild(document.createTextNode(value.description)); | 424 contents.appendChild(document.createTextNode(value.description)); |
430 } | 425 } |
431 }, | 426 }, |
432 | 427 |
433 __proto__: WebInspector.DataGridNode.prototype | 428 __proto__: WebInspector.DataGridNode.prototype |
434 } | 429 } |
435 | 430 |
OLD | NEW |