@@ -216,7 +216,7 @@ function watchForRender(node, handler) {
216216 }
217217 } ;
218218
219- helpers . each ( ANIMATION_START_EVENTS , function ( type ) {
219+ ANIMATION_START_EVENTS . forEach ( function ( type ) {
220220 addListener ( node , type , proxy ) ;
221221 } ) ;
222222
@@ -235,7 +235,7 @@ function unwatchForRender(node) {
235235 var proxy = expando . renderProxy ;
236236
237237 if ( proxy ) {
238- helpers . each ( ANIMATION_START_EVENTS , function ( type ) {
238+ ANIMATION_START_EVENTS . forEach ( function ( type ) {
239239 removeListener ( node , type , proxy ) ;
240240 } ) ;
241241
@@ -382,23 +382,24 @@ module.exports = {
382382 } ,
383383
384384 releaseContext : function ( context ) {
385- var canvas = context . canvas ;
385+ const canvas = context . canvas ;
386386 if ( ! canvas [ EXPANDO_KEY ] ) {
387387 return ;
388388 }
389389
390- var initial = canvas [ EXPANDO_KEY ] . initial ;
390+ const initial = canvas [ EXPANDO_KEY ] . initial ;
391391 [ 'height' , 'width' ] . forEach ( function ( prop ) {
392- var value = initial [ prop ] ;
392+ const value = initial [ prop ] ;
393393 if ( helpers . isNullOrUndef ( value ) ) {
394394 canvas . removeAttribute ( prop ) ;
395395 } else {
396396 canvas . setAttribute ( prop , value ) ;
397397 }
398398 } ) ;
399399
400- helpers . each ( initial . style || { } , function ( value , key ) {
401- canvas . style [ key ] = value ;
400+ const style = initial . style || { } ;
401+ Object . keys ( style ) . forEach ( function ( key ) {
402+ canvas . style [ key ] = style [ key ] ;
402403 } ) ;
403404
404405 // The canvas render size might have been changed (and thus the state stack discarded),
0 commit comments