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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 ++propertyCount; | 132 ++propertyCount; |
133 } | 133 } |
134 | 134 |
135 // Now process all the expressions, since we have the actual count, | 135 // Now process all the expressions, since we have the actual count, |
136 // which is checked in the appendResult inner function. | 136 // which is checked in the appendResult inner function. |
137 for (var i = 0; i < this.watchExpressions.length; ++i) { | 137 for (var i = 0; i < this.watchExpressions.length; ++i) { |
138 var expression = this.watchExpressions[i]; | 138 var expression = this.watchExpressions[i]; |
139 if (!expression) | 139 if (!expression) |
140 continue; | 140 continue; |
141 | 141 |
142 WebInspector.console.evalInInspectedWindow("(" + expression + ")", t
his._watchObjectGroupId, appendResult.bind(this, expression, i)); | 142 WebInspector.console.evalInInspectedWindow("(" + expression + ")", t
his._watchObjectGroupId, false, appendResult.bind(this, expression, i)); |
143 } | 143 } |
144 | 144 |
145 // note this is setting the expansion of the tree, not the section; | 145 // note this is setting the expansion of the tree, not the section; |
146 // with no expressions, and expanded tree, we get some extra vertical | 146 // with no expressions, and expanded tree, we get some extra vertical |
147 // white space | 147 // white space |
148 // FIXME: should change to use header buttons instead of the buttons | 148 // FIXME: should change to use header buttons instead of the buttons |
149 // at the bottom of the section, then we can add a "No Watch Expressions | 149 // at the bottom of the section, then we can add a "No Watch Expressions |
150 // element when there are no watch expressions, and this issue should | 150 // element when there are no watch expressions, and this issue should |
151 // go away. | 151 // go away. |
152 this.expanded = (propertyCount != 0); | 152 this.expanded = (propertyCount != 0); |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 | 262 |
263 if (!expression) | 263 if (!expression) |
264 expression = null; | 264 expression = null; |
265 | 265 |
266 this.property.name = expression; | 266 this.property.name = expression; |
267 this.treeOutline.section.updateExpression(this, expression); | 267 this.treeOutline.section.updateExpression(this, expression); |
268 } | 268 } |
269 } | 269 } |
270 | 270 |
271 WebInspector.WatchExpressionTreeElement.prototype.__proto__ = WebInspector.Objec
tPropertyTreeElement.prototype; | 271 WebInspector.WatchExpressionTreeElement.prototype.__proto__ = WebInspector.Objec
tPropertyTreeElement.prototype; |
OLD | NEW |