[HTML5] Expose request_quit via Engine class.
So it can be called when closure compiler is enabled.
This commit is contained in:
parent
f72bbc4c3b
commit
47e82bcb58
1 changed files with 7 additions and 0 deletions
|
@ -227,6 +227,12 @@ Function('return this')()['Engine'] = (function() {
|
|||
this.persistentPaths = persistentPaths;
|
||||
};
|
||||
|
||||
Engine.prototype.requestQuit = function() {
|
||||
if (this.rtenv) {
|
||||
this.rtenv['request_quit']();
|
||||
}
|
||||
};
|
||||
|
||||
// Closure compiler exported engine methods.
|
||||
/** @export */
|
||||
Engine['isWebGLAvailable'] = Utils.isWebGLAvailable;
|
||||
|
@ -249,5 +255,6 @@ Function('return this')()['Engine'] = (function() {
|
|||
Engine.prototype['setOnExit'] = Engine.prototype.setOnExit;
|
||||
Engine.prototype['copyToFS'] = Engine.prototype.copyToFS;
|
||||
Engine.prototype['setPersistentPaths'] = Engine.prototype.setPersistentPaths;
|
||||
Engine.prototype['requestQuit'] = Engine.prototype.requestQuit;
|
||||
return Engine;
|
||||
})();
|
||||
|
|
Loading…
Reference in a new issue