11import Base from "../../core/base" ;
22import Parser from "../../core/parser" ;
33import dom from "../../core/dom" ;
4+ import events from "../../core/events" ;
45import utils from "../../core/utils" ;
56import "../../core/jquery-ext" ;
67
@@ -121,7 +122,7 @@ export default Base.extend({
121122 ) ;
122123 for ( const box of chkbxs ) {
123124 box . checked = true ;
124- box . dispatchEvent ( new Event ( "change" , { bubbles : true , cancelable : true } ) ) ;
125+ box . dispatchEvent ( events . change_event ( ) ) ;
125126 }
126127 } ,
127128
@@ -130,7 +131,7 @@ export default Base.extend({
130131 const chkbxs = this . find_checkboxes ( e . target , "input[type=checkbox]:checked" ) ;
131132 for ( const box of chkbxs ) {
132133 box . checked = false ;
133- box . dispatchEvent ( new Event ( "change" , { bubbles : true , cancelable : true } ) ) ;
134+ box . dispatchEvent ( events . change_event ( ) ) ;
134135 }
135136 } ,
136137
@@ -140,7 +141,7 @@ export default Base.extend({
140141 const chkbxs = this . find_checkboxes ( e . target , "input[type=checkbox]" ) ;
141142 for ( const box of chkbxs ) {
142143 box . checked = checked ;
143- box . dispatchEvent ( new Event ( "change" , { bubbles : true , cancelable : true } ) ) ;
144+ box . dispatchEvent ( events . change_event ( ) ) ;
144145 }
145146 } ,
146147
0 commit comments