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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 _emptyElementContextMenu: function(event) | 337 _emptyElementContextMenu: function(event) |
338 { | 338 { |
339 var contextMenu = new WebInspector.ContextMenu(event); | 339 var contextMenu = new WebInspector.ContextMenu(event); |
340 contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMe
nuTitles() ? "Add watch expression" : "Add Watch Expression"), this.addNewExpres
sionAndEdit.bind(this)); | 340 contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMe
nuTitles() ? "Add watch expression" : "Add Watch Expression"), this.addNewExpres
sionAndEdit.bind(this)); |
341 contextMenu.show(); | 341 contextMenu.show(); |
342 }, | 342 }, |
343 | 343 |
344 __proto__: WebInspector.ObjectPropertiesSection.prototype | 344 __proto__: WebInspector.ObjectPropertiesSection.prototype |
345 } | 345 } |
346 | 346 |
| 347 /** |
| 348 * @param {!WebInspector.RemoteObjectProperty} propertyA |
| 349 * @param {!WebInspector.RemoteObjectProperty} propertyB |
| 350 * @return {number} |
| 351 */ |
347 WebInspector.WatchExpressionsSection.CompareProperties = function(propertyA, pro
pertyB) | 352 WebInspector.WatchExpressionsSection.CompareProperties = function(propertyA, pro
pertyB) |
348 { | 353 { |
349 if (propertyA.watchIndex == propertyB.watchIndex) | 354 if (propertyA.watchIndex == propertyB.watchIndex) |
350 return 0; | 355 return 0; |
351 else if (propertyA.watchIndex < propertyB.watchIndex) | 356 else if (propertyA.watchIndex < propertyB.watchIndex) |
352 return -1; | 357 return -1; |
353 else | 358 else |
354 return 1; | 359 return 1; |
355 } | 360 } |
356 | 361 |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
508 }, | 513 }, |
509 | 514 |
510 oncollapse: function() | 515 oncollapse: function() |
511 { | 516 { |
512 WebInspector.ObjectPropertyTreeElement.prototype.oncollapse.call(this); | 517 WebInspector.ObjectPropertyTreeElement.prototype.oncollapse.call(this); |
513 delete this.treeOutline.section._expandedProperties[this.propertyPath()]
; | 518 delete this.treeOutline.section._expandedProperties[this.propertyPath()]
; |
514 }, | 519 }, |
515 | 520 |
516 __proto__: WebInspector.ObjectPropertyTreeElement.prototype | 521 __proto__: WebInspector.ObjectPropertyTreeElement.prototype |
517 } | 522 } |
OLD | NEW |