luci-base: luci.js: further nested Class.super() call fixes 3364/head
authorJo-Philipp Wich <jo@mein.io>
Tue, 26 Nov 2019 10:35:23 +0000 (11:35 +0100)
committerJo-Philipp Wich <jo@mein.io>
Tue, 26 Nov 2019 10:39:50 +0000 (11:39 +0100)
commita68c89cfcfb61131d53d7a918a651570694e038f
tree64d3804cdee343671f763fa988fa804fcab02384
parent3ad8ef4edae119df27a57c09d7003f170d20737f
luci-base: luci.js: further nested Class.super() call fixes

Use stacks keyed by class id + symbol internally to not clobber the
prototype scope pointer when repeatedly calling super() in invoked
methods.

Ref: https://github.com/openwrt/luci/issues/3316#issuecomment-558531111
Fixes: 374c23cda ("luci-base: luci.js: properly handle nested Class.super() calls")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 4a08fdd2d374083366787c4124e6b4de48bf7b77)
modules/luci-base/htdocs/luci-static/resources/luci.js