Initialize CustomEvent correctly

This commit is contained in:
YUKI Hiroshi 2014-03-12 11:34:42 +09:00
parent 8b3792b312
commit 5e7dc7684a
2 changed files with 3 additions and 3 deletions

View File

@ -750,7 +750,7 @@ var TreeStyleTabBase = {
if (!document) if (!document)
document = target.ownerDocument || target; document = target.ownerDocument || target;
var event = new CustomEvent(type, { var event = new this.window.CustomEvent(type, {
bubbles : canBubble, bubbles : canBubble,
cancelable : cancelable, cancelable : cancelable,
detail : data detail : data

View File

@ -14,7 +14,7 @@
* The Original Code is the Tree Style Tab. * The Original Code is the Tree Style Tab.
* *
* The Initial Developer of the Original Code is YUKI "Piro" Hiroshi. * The Initial Developer of the Original Code is YUKI "Piro" Hiroshi.
* Portions created by the Initial Developer are Copyright (C) 2011-2013 * Portions created by the Initial Developer are Copyright (C) 2011-2014
* the Initial Developer. All Rights Reserved. * the Initial Developer. All Rights Reserved.
* *
* Contributor(s): YUKI "Piro" Hiroshi <piro.outsider.reflex@gmail.com> * Contributor(s): YUKI "Piro" Hiroshi <piro.outsider.reflex@gmail.com>
@ -76,7 +76,7 @@ var PseudoTreeBuilder = {
' null\n' + ' null\n' +
' ).singleNodeValue;\n' + ' ).singleNodeValue;\n' +
'if (label) {\n' + 'if (label) {\n' +
' var customEvent = new CustomEvent(%EVENT_TYPE%, {\n' + ' var customEvent = new doc.defaultView.CustomEvent(%EVENT_TYPE%, {\n' +
' bubbles : true,\n' + ' bubbles : true,\n' +
' cancelable : true,\n' + ' cancelable : true,\n' +
' detail : {\n' + ' detail : {\n' +