V86.destroy()

This commit is contained in:
copy 2015-09-14 01:57:13 +02:00
parent 85be27910a
commit 87c291e923

View file

@ -398,6 +398,14 @@ V86Starter.prototype.stop = function()
this.bus.send("cpu-stop");
};
/**
* @ignore
*/
V86Starter.prototype.destroy = function()
{
this.keyboard_adapter.destroy();
};
/**
* Restart (force a reboot).
*/
@ -844,6 +852,7 @@ else if(typeof importScripts === "function")
V86Starter.prototype["run"] = V86Starter.prototype.run;
V86Starter.prototype["stop"] = V86Starter.prototype.stop;
V86Starter.prototype["restart"] = V86Starter.prototype.restart;
V86Starter.prototype["destroy"] = V86Starter.prototype.destroy;
V86Starter.prototype["add_listener"] = V86Starter.prototype.add_listener;
V86Starter.prototype["remove_listener"] = V86Starter.prototype.remove_listener;
V86Starter.prototype["restore_state"] = V86Starter.prototype.restore_state;