File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -22,33 +22,33 @@ Object.assign( Layers.prototype, {
2222
2323 } ,
2424
25- toggle : function ( channel ) {
25+ enableAll : function ( ) {
2626
27- this . mask ^= 1 << channel | 0 ;
27+ this . mask = 0xffffffff | 0 ;
2828
2929 } ,
3030
31- disable : function ( channel ) {
31+ toggle : function ( channel ) {
3232
33- this . mask &= ~ ( 1 << channel | 0 ) ;
33+ this . mask ^= 1 << channel | 0 ;
3434
3535 } ,
3636
37- test : function ( layers ) {
37+ disable : function ( channel ) {
3838
39- return ( this . mask & layers . mask ) !== 0 ;
39+ this . mask &= ~ ( 1 << channel | 0 ) ;
4040
4141 } ,
4242
43- enableAll : function ( ) {
43+ disableAll : function ( ) {
4444
45- this . mask = 0xffffffff | 0 ;
45+ this . mask = 0 ;
4646
4747 } ,
4848
49- disableAll : function ( ) {
49+ test : function ( layers ) {
5050
51- this . mask = 0 ;
51+ return ( this . mask & layers . mask ) != = 0 ;
5252
5353 }
5454
You can’t perform that action at this time.
0 commit comments