@@ -4,10 +4,7 @@ var control = (function(){
44element : helper . e ( ".control-menu-open" ) ,
55type : "button" ,
66func : function ( ) {
7- menu . mod . open ( ) ;
8- menu . render . toggle ( ) ;
9- menu . render . tabindex . toggle ( ) ;
10- pagelock . render . toggle ( ) ;
7+ menu . open ( ) ;
118}
129} , {
1310element : helper . e ( ".control-menu-layout" ) ,
@@ -55,24 +52,21 @@ var control = (function(){
5552element : helper . e ( ".control-menu-close" ) ,
5653type : "button" ,
5754func : function ( ) {
58- shade . destroy ( ) ;
59- menu . mod . close ( ) ;
60- menu . render . toggle ( ) ;
61- menu . render . tabindex . toggle ( ) ;
62- pagelock . render . toggle ( ) ;
55+ menu . close ( ) ;
6356}
6457} , {
6558element : helper . e ( ".control-link-add" ) ,
6659type : "button" ,
6760func : function ( ) {
68- link . render . add ( ) ;
61+ link . add ( ) ;
6962}
7063} , {
7164element : helper . e ( ".control-link-edit" ) ,
7265path : "link.edit" ,
7366type : "checkbox" ,
7467func : function ( ) {
7568render ( ) ;
69+ link . render . tabindex ( ) ;
7670}
7771} , {
7872element : helper . e ( ".control-theme-accent-current" ) ,
@@ -2144,7 +2138,7 @@ var control = (function(){
21442138element : helper . e ( ".control-background-image-file" ) ,
21452139type : "file" ,
21462140func : function ( ) {
2147- background . importData ( ) ;
2141+ background . mod . import ( ) ;
21482142}
21492143} , {
21502144element : helper . e ( ".control-background-image-file-clear" ) ,
@@ -2214,20 +2208,20 @@ var control = (function(){
22142208element : helper . e ( ".control-data-import" ) ,
22152209type : "file" ,
22162210func : function ( ) {
2217- data . importData ( ) ;
2211+ data . mod . import ( ) ;
22182212}
22192213} , {
22202214element : helper . e ( ".control-data-export" ) ,
22212215type : "a" ,
22222216func : function ( ) {
2223- data . exportData ( ) ;
2217+ data . mod . export ( ) ;
22242218}
22252219} , {
22262220element : helper . e ( ".control-data-clear" ) ,
22272221type : "a" ,
22282222func : function ( ) {
22292223menu . close ( ) ;
2230- data . clearData ( ) ;
2224+ data . render . clear ( ) ;
22312225}
22322226} ] ;
22332227
@@ -2465,7 +2459,6 @@ var control = (function(){
24652459helper . removeClass ( html , "is-link-style-list" ) ;
24662460helper . removeClass ( html , "is-link-style-block" ) ;
24672461helper . removeClass ( html , "is-link-edit" ) ;
2468- link . render . tabIndex ( ) ;
24692462if ( state . get ( ) . link . show ) {
24702463helper . addClass ( html , "is-link-show" ) ;
24712464helper . addClass ( html , "is-link-area-alignment-" + state . get ( ) . link . area . alignment ) ;
@@ -2488,7 +2481,6 @@ var control = (function(){
24882481} ;
24892482if ( state . get ( ) . link . edit ) {
24902483helper . addClass ( html , "is-link-edit" ) ;
2491- link . render . tabIndex ( ) ;
24922484} ;
24932485} ;
24942486} ;
0 commit comments