| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Joseph Pecoraro | 2 * Copyright (C) 2009 Joseph Pecoraro |
| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 WebInspector.ConsolePanel.ConsoleRevealer = function() | 126 WebInspector.ConsolePanel.ConsoleRevealer = function() |
| 127 { | 127 { |
| 128 } | 128 } |
| 129 | 129 |
| 130 WebInspector.ConsolePanel.ConsoleRevealer.prototype = { | 130 WebInspector.ConsolePanel.ConsoleRevealer.prototype = { |
| 131 /** | 131 /** |
| 132 * @param {!Object} object | 132 * @param {!Object} object |
| 133 */ | 133 */ |
| 134 reveal: function(object) | 134 reveal: function(object) |
| 135 { | 135 { |
| 136 if (!(object instanceof WebInspector.ConsoleModel)) | |
| 137 return; | |
| 138 | |
| 139 var consoleView = WebInspector.ConsolePanel._view(); | 136 var consoleView = WebInspector.ConsolePanel._view(); |
| 140 if (consoleView.isShowing()) { | 137 if (consoleView.isShowing()) { |
| 141 consoleView.focus(); | 138 consoleView.focus(); |
| 142 return; | 139 return; |
| 143 } | 140 } |
| 144 WebInspector.inspectorView.showViewInDrawer("console"); | 141 WebInspector.inspectorView.showViewInDrawer("console"); |
| 145 } | 142 } |
| 146 } | 143 } |
| OLD | NEW |