var dispatchStorageEvent = function(key, oldValue, newValue) {
var evt = document.createEvent("CustomEvent");
- evt.initCustomEvent("storage", true, true);
+ evt.initCustomEvent("storage", true, true, null);
evt.key = key;
evt.oldValue = oldValue;
evt.newValue = newValue;
const char* kAppControlEventScript =
"(function(){"
"var __event = document.createEvent(\"CustomEvent\");\n"
- "__event.initCustomEvent(\"appcontrol\", true, true);\n"
+ "__event.initCustomEvent(\"appcontrol\", true, true, null);\n"
"document.dispatchEvent(__event);\n"
"\n"
"for (var i=0; i < window.frames.length; i++)\n"
const char* kBackKeyEventScript =
"(function(){"
"var __event = document.createEvent(\"CustomEvent\");\n"
- "__event.initCustomEvent(\"tizenhwkey\", true, true);\n"
+ "__event.initCustomEvent(\"tizenhwkey\", true, true, null);\n"
"__event.keyName = \"back\";\n"
"document.dispatchEvent(__event);\n"
"\n"
const char* kMenuKeyEventScript =
"(function(){"
"var __event = document.createEvent(\"CustomEvent\");\n"
- "__event.initCustomEvent(\"tizenhwkey\", true, true);\n"
+ "__event.initCustomEvent(\"tizenhwkey\", true, true, null);\n"
"__event.keyName = \"menu\";\n"
"document.dispatchEvent(__event);\n"
"\n"