OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * Copyright (C) 2009 Joseph Pecoraro | 3 * Copyright (C) 2009 Joseph Pecoraro |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 * @return {number} | 131 * @return {number} |
132 */ | 132 */ |
133 WebInspector.ObjectPropertiesSection.CompareProperties = function(propertyA, pro
pertyB) | 133 WebInspector.ObjectPropertiesSection.CompareProperties = function(propertyA, pro
pertyB) |
134 { | 134 { |
135 var a = propertyA.name; | 135 var a = propertyA.name; |
136 var b = propertyB.name; | 136 var b = propertyB.name; |
137 if (a === "__proto__") | 137 if (a === "__proto__") |
138 return 1; | 138 return 1; |
139 if (b === "__proto__") | 139 if (b === "__proto__") |
140 return -1; | 140 return -1; |
| 141 if (propertyA.symbol && !propertyB.symbol) |
| 142 return 1; |
| 143 if (propertyB.symbol && !propertyA.symbol) |
| 144 return -1; |
141 return String.naturalOrderComparator(a, b); | 145 return String.naturalOrderComparator(a, b); |
142 } | 146 } |
143 | 147 |
144 /** | 148 /** |
145 * @constructor | 149 * @constructor |
146 * @extends {TreeElement} | 150 * @extends {TreeElement} |
147 * @param {!WebInspector.RemoteObjectProperty} property | 151 * @param {!WebInspector.RemoteObjectProperty} property |
148 */ | 152 */ |
149 WebInspector.ObjectPropertyTreeElement = function(property) | 153 WebInspector.ObjectPropertyTreeElement = function(property) |
150 { | 154 { |
(...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
995 { | 999 { |
996 WebInspector.TextPrompt.call(this, WebInspector.ExecutionContextSelector.com
pletionsForTextPromptInCurrentContext); | 1000 WebInspector.TextPrompt.call(this, WebInspector.ExecutionContextSelector.com
pletionsForTextPromptInCurrentContext); |
997 this.setSuggestBoxEnabled(true); | 1001 this.setSuggestBoxEnabled(true); |
998 if (renderAsBlock) | 1002 if (renderAsBlock) |
999 this.renderAsBlock(); | 1003 this.renderAsBlock(); |
1000 } | 1004 } |
1001 | 1005 |
1002 WebInspector.ObjectPropertyPrompt.prototype = { | 1006 WebInspector.ObjectPropertyPrompt.prototype = { |
1003 __proto__: WebInspector.TextPrompt.prototype | 1007 __proto__: WebInspector.TextPrompt.prototype |
1004 } | 1008 } |
OLD | NEW |