| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google 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 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 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 /** | 31 /** |
| 32 * @constructor | 32 * @constructor |
| 33 * @param {string=} title | 33 * @param {string=} title |
| 34 * @param {string=} message | 34 * @param {string=} message |
| 35 * @extends {WebInspector.HelpScreen} | 35 * @extends {WebInspector.HelpScreen} |
| 36 */ | 36 */ |
| 37 WebInspector.HelpScreenUntilReload = function(title, message) | 37 WebInspector.HelpScreenUntilReload = function(title, message) |
| 38 { | 38 { |
| 39 WebInspector.HelpScreen.call(this, title); | 39 WebInspector.HelpScreen.call(this, title); |
| 40 var p = this.contentElement.createChild("p"); | 40 var p = this.helpContentElement.createChild("p"); |
| 41 p.classList.add("help-section"); | 41 p.classList.add("help-section"); |
| 42 p.textContent = message; | 42 p.textContent = message; |
| 43 WebInspector.debuggerModel.addEventListener(WebInspector.DebuggerModel.Event
s.GlobalObjectCleared, this.hide, this); | 43 WebInspector.debuggerModel.addEventListener(WebInspector.DebuggerModel.Event
s.GlobalObjectCleared, this.hide, this); |
| 44 } | 44 } |
| 45 | 45 |
| 46 WebInspector.HelpScreenUntilReload.prototype = { | 46 WebInspector.HelpScreenUntilReload.prototype = { |
| 47 /** | 47 /** |
| 48 * @override | 48 * @override |
| 49 */ | 49 */ |
| 50 willHide: function() | 50 willHide: function() |
| 51 { | 51 { |
| 52 WebInspector.debuggerModel.removeEventListener(WebInspector.DebuggerMode
l.Events.GlobalObjectCleared, this.hide, this); | 52 WebInspector.debuggerModel.removeEventListener(WebInspector.DebuggerMode
l.Events.GlobalObjectCleared, this.hide, this); |
| 53 WebInspector.HelpScreen.prototype.willHide.call(this); | 53 WebInspector.HelpScreen.prototype.willHide.call(this); |
| 54 }, | 54 }, |
| 55 | 55 |
| 56 __proto__: WebInspector.HelpScreen.prototype | 56 __proto__: WebInspector.HelpScreen.prototype |
| 57 } | 57 } |
| OLD | NEW |