From 7bd8d8bf36fb95f32d9bfdb4cbfa1b62b792777c Mon Sep 17 00:00:00 2001 From: Dustin Falgout Date: Mon, 1 Aug 2016 05:52:49 -0500 Subject: [PATCH] more work on theme api docs and mock script --- themes/_vendor/js/mock.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/themes/_vendor/js/mock.js b/themes/_vendor/js/mock.js index b84d04a..6508ae0 100644 --- a/themes/_vendor/js/mock.js +++ b/themes/_vendor/js/mock.js @@ -209,7 +209,7 @@ let LightDMUser = { * The greeter will automatically create an instance of this class when it starts. * The instance can be accessed through the {@link window.lightdm} global variable. */ -window.lightdm = new (class LightDMGreeter { +class LightDMGreeter { constructor() { if ( null !== _greeter ) { @@ -538,7 +538,7 @@ window.lightdm = new (class LightDMGreeter { */ suspend() {} -})(); +} /** * Mock data to simulate the greeter's API in any web browser. @@ -620,6 +620,8 @@ const MockData = { ] }; +window.lightdm = new LightDMGreeter(); + // mock lighdm for testing /*