OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 30 matching lines...) Expand all Loading... |
41 update: function(node) | 41 update: function(node) |
42 { | 42 { |
43 var body = this.bodyElement; | 43 var body = this.bodyElement; |
44 | 44 |
45 if (!node) { | 45 if (!node) { |
46 body.removeChildren(); | 46 body.removeChildren(); |
47 this.sections = []; | 47 this.sections = []; |
48 return; | 48 return; |
49 } | 49 } |
50 | 50 |
51 WebInspector.RemoteObject.resolveNode(node, WebInspector.PropertiesSideb
arPane._objectGroupName, nodeResolved.bind(this)); | 51 node.resolveToObject(WebInspector.PropertiesSidebarPane._objectGroupName
, nodeResolved.bind(this)); |
52 | 52 |
53 /** | 53 /** |
54 * @this {WebInspector.PropertiesSidebarPane} | 54 * @this {WebInspector.PropertiesSidebarPane} |
55 */ | 55 */ |
56 function nodeResolved(object) | 56 function nodeResolved(object) |
57 { | 57 { |
58 if (!object) | 58 if (!object) |
59 return; | 59 return; |
60 | 60 |
61 /** | 61 /** |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 title = title.replace(/Prototype$/, ""); | 110 title = title.replace(/Prototype$/, ""); |
111 var section = new WebInspector.ObjectPropertiesSection(prototype
, title); | 111 var section = new WebInspector.ObjectPropertiesSection(prototype
, title); |
112 this.sections.push(section); | 112 this.sections.push(section); |
113 body.appendChild(section.element); | 113 body.appendChild(section.element); |
114 } | 114 } |
115 } | 115 } |
116 }, | 116 }, |
117 | 117 |
118 __proto__: WebInspector.SidebarPane.prototype | 118 __proto__: WebInspector.SidebarPane.prototype |
119 } | 119 } |
OLD | NEW |