File tree Expand file tree Collapse file tree 1 file changed +23
-5
lines changed
Expand file tree Collapse file tree 1 file changed +23
-5
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,17 @@ var control = (function(){
22
33var mod = { } ;
44
5+ mod . debug = {
6+ active : false ,
7+ toggle : function ( ) {
8+ if ( mod . debug . active ) {
9+ mod . debug . active = false ;
10+ } else {
11+ mod . debug . active = true ;
12+ } ;
13+ }
14+ } ;
15+
516mod . header = [ {
617element : ".control-menu-open" ,
718type : "button" ,
@@ -5776,10 +5787,12 @@ var control = (function(){
57765787path : object . path ,
57775788newValue : newValue
57785789} ) ;
5779- console . log ( "state set" , object . path , helper . getObject ( {
5780- object : state . get . current ( ) ,
5781- path : object . path
5782- } ) ) ;
5790+ if ( mod . debug . active ) {
5791+ console . log ( "state set" , object . path , helper . getObject ( {
5792+ object : state . get . current ( ) ,
5793+ path : object . path
5794+ } ) ) ;
5795+ } ;
57835796} ;
57845797} ,
57855798get : {
@@ -7260,6 +7273,10 @@ var control = (function(){
72607273}
72617274} ;
72627275
7276+ var debug = function ( ) {
7277+ mod . debug . toggle ( ) ;
7278+ } ;
7279+
72637280var init = function ( ) {
72647281bind . control . header ( ) ;
72657282bind . control . menu ( ) ;
@@ -7276,7 +7293,8 @@ var control = (function(){
72767293init : init ,
72777294mod : mod ,
72787295bind : bind ,
7279- render : render
7296+ render : render ,
7297+ debug : debug
72807298} ;
72817299
72827300} ) ( ) ;
You can’t perform that action at this time.
0 commit comments