luci-base: luci.js: share environment object among LuCI base classes
authorJo-Philipp Wich <jo@mein.io>
Thu, 16 Apr 2020 08:46:45 +0000 (10:46 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 7 May 2020 17:40:49 +0000 (19:40 +0200)
commitbf4dd8e335b8b6046ca21e4d9f6c0ed33b6d3090
tree4304a3b8b36f2c219a682ad9e99a92ee650594d4
parentbef91474bd2d4023b367c6e92f64103a9bda8ce4
luci-base: luci.js: share environment object among LuCI base classes

This allows us to get rid of global `L` references in luci.js itself.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit e385640505352efe8e470d5b723e8b467a0d6fb6)
modules/luci-base/htdocs/luci-static/resources/luci.js