Skip to content

Commit 3e2160c

Browse files
committed
Adds documentation to apploader#reset
1 parent 4db6229 commit 3e2160c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/apploader.js

+5
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ var apps = [];
2626
var device = { id : DEVICEID, appsInstalled : [] };
2727
var language; // Object of translations
2828

29+
/* This resets the list of installed apps to an empty list.
30+
It can be used in case the device behind the apploader has changed
31+
after init (i.e. emulator factory reset) so the dependency
32+
resolution does not skip no longer installed apps.
33+
*/
2934
exports.reset = function(){
3035
device.appsInstalled = [];
3136
}

0 commit comments

Comments
 (0)