[Webkit-unassigned] [Bug 30520] Enable creation of custom SidebarTreeElements for different ProfileTypes

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 19 11:49:30 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=30520





--- Comment #3 from Pavel Feldman <pfeldman at chromium.org>  2009-10-19 11:49:30 PDT ---
> +    _viewForProfile: function(profile)
> +    {
> +        for (var key in this._profilesIdMap) {
> +            if (this._profilesIdMap[key] === profile) {
> +                var parsedKey = this._parseKey(key);
> +                if (parsedKey)
> +                    return this.getProfileType(parsedKey[1]).viewForProfile(profile);

This sounds much more complex than "profile.type.viewForProfile(profile)".
Should we make profile have this property in order to get rid of key parsing?

-- 
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