Bug 710804 - Use postMessage instead of an event for asking the homescreen to close an app r=fabrice DONTBUILD since this is b2g/ only

This commit is contained in:
Vivien Nicolas 2011-12-14 21:02:50 +01:00
parent 1796ee0347
commit ea29ad2222

View File

@ -180,7 +180,7 @@ var shell = {
doCommand: function shell_doCommand(cmd) {
switch (cmd) {
case 'cmd_close':
this.sendEvent(this.home.contentWindow, 'appclose');
this.home.contentWindow.postMessage('appclose', '*');
break;
}
},