[Webkit-unassigned] [Bug 85711] Web Inspector: Turn HelpScreen to be View.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri May 11 06:06:18 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=85711
--- Comment #8 from eustas.bug at gmail.com 2012-05-11 06:05:22 PST ---
(From update of attachment 141357)
View in context: https://bugs.webkit.org/attachment.cgi?id=141357&action=review
>> Source/WebCore/inspector/front-end/SettingsController.js:34
>> +WebInspector.SettingsController = function()
>
> This can be a part of the settings screen for simplicity.
Moved.
>> Source/WebCore/inspector/front-end/ShortcutsScreen.js:54
>> + willShow: function()
>
> Why new callback? Doesn't wasShown work?
IMHO it is much better to manipulate DOM until it became visible, not after.
>> Source/WebCore/inspector/front-end/ShortcutsScreen.js:57
>> + WebInspector.HelpScreen.prototype.willShow.call(this);
>
> Is there anything in this prototype? You should not override View's methods here, HelpScreen should provide appropriate apis for extensibility.
willShow/wasShown/willHide are clearly hook methods created specially for purposes like that.
It seems to be inappropriate to create a new layer of hooks.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list