| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) IBM Corp. 2009 All rights reserved. | 2 * Copyright (C) IBM Corp. 2009 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 if (this._newExpressionAdded) { | 124 if (this._newExpressionAdded) { |
| 125 delete this._newExpressionAdded; | 125 delete this._newExpressionAdded; |
| 126 | 126 |
| 127 treeElement = this.findAddedTreeElement(); | 127 treeElement = this.findAddedTreeElement(); |
| 128 if (treeElement) | 128 if (treeElement) |
| 129 treeElement.startEditing(); | 129 treeElement.startEditing(); |
| 130 } | 130 } |
| 131 } | 131 } |
| 132 } | 132 } |
| 133 | 133 |
| 134 InspectorBackend.releaseWrapperObjectGroup(this._watchObjectGroupId) | 134 // TODO: pass exact injected script id. |
| 135 InspectorBackend.releaseWrapperObjectGroup(0, this._watchObjectGroupId) |
| 135 var properties = []; | 136 var properties = []; |
| 136 | 137 |
| 137 // Count the properties, so we known when to call this.updateProperties(
) | 138 // Count the properties, so we known when to call this.updateProperties(
) |
| 138 // in appendResult() | 139 // in appendResult() |
| 139 var propertyCount = 0; | 140 var propertyCount = 0; |
| 140 for (var i = 0; i < this.watchExpressions.length; ++i) { | 141 for (var i = 0; i < this.watchExpressions.length; ++i) { |
| 141 if (!this.watchExpressions[i]) | 142 if (!this.watchExpressions[i]) |
| 142 continue; | 143 continue; |
| 143 ++propertyCount; | 144 ++propertyCount; |
| 144 } | 145 } |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 | 270 |
| 270 if (!expression) | 271 if (!expression) |
| 271 expression = null; | 272 expression = null; |
| 272 | 273 |
| 273 this.property.name = expression; | 274 this.property.name = expression; |
| 274 this.treeOutline.section.updateExpression(this, expression); | 275 this.treeOutline.section.updateExpression(this, expression); |
| 275 } | 276 } |
| 276 } | 277 } |
| 277 | 278 |
| 278 WebInspector.WatchExpressionTreeElement.prototype.__proto__ = WebInspector.Objec
tPropertyTreeElement.prototype; | 279 WebInspector.WatchExpressionTreeElement.prototype.__proto__ = WebInspector.Objec
tPropertyTreeElement.prototype; |
| OLD | NEW |