| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 * 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 * | 10 * |
| (...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 562 | 562 |
| 563 WebInspector.NavigatorScriptTreeElement.prototype = { | 563 WebInspector.NavigatorScriptTreeElement.prototype = { |
| 564 /** | 564 /** |
| 565 * @type {WebInspector.UISourceCode} | 565 * @type {WebInspector.UISourceCode} |
| 566 */ | 566 */ |
| 567 get uiSourceCode() | 567 get uiSourceCode() |
| 568 { | 568 { |
| 569 return this._uiSourceCode; | 569 return this._uiSourceCode; |
| 570 }, | 570 }, |
| 571 | 571 |
| 572 onattach: function() |
| 573 { |
| 574 WebInspector.BaseNavigatorTreeElement.prototype.onattach.call(this); |
| 575 this.listItemElement.addEventListener("click", this._onclick.bind(this),
false); |
| 576 }, |
| 577 |
| 572 /** | 578 /** |
| 573 * @param {Event} event | 579 * @param {Event} event |
| 574 */ | 580 */ |
| 575 ondblclick: function(event) | 581 _onclick: function(event) |
| 576 { | 582 { |
| 577 this._navigator.scriptSelected(this.uiSourceCode); | 583 this._navigator.scriptSelected(this.uiSourceCode); |
| 578 }, | 584 }, |
| 579 | 585 |
| 580 onenter: function() | 586 onenter: function() |
| 581 { | 587 { |
| 582 this._navigator.scriptSelected(this.uiSourceCode); | 588 this._navigator.scriptSelected(this.uiSourceCode); |
| 583 } | 589 } |
| 584 } | 590 } |
| 585 | 591 |
| 586 WebInspector.NavigatorScriptTreeElement.prototype.__proto__ = WebInspector.BaseN
avigatorTreeElement.prototype; | 592 WebInspector.NavigatorScriptTreeElement.prototype.__proto__ = WebInspector.BaseN
avigatorTreeElement.prototype; |
| OLD | NEW |