File tree 2 files changed +7
-5
lines changed
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -87,17 +87,19 @@ export default class View extends Emitter {
87
87
* Set visibility so that view is rendered.
88
88
* @returns {View }
89
89
*/
90
- $show ( ) {
91
- this . $node . style . visibility = 'visible' ;
90
+ show ( ) {
91
+ this . $node . classList . add ( 'visible' ) ;
92
+ this . $node . classList . remove ( 'invisible' ) ;
92
93
return this ;
93
94
}
94
95
95
96
/**
96
97
* Set visibility so that view is not rendered.
97
98
* @returns {View }
98
99
*/
99
- $hide ( ) {
100
- this . $node . style . visibility = 'hidden' ;
100
+ hide ( ) {
101
+ this . $node . classList . add ( 'invisible' ) ;
102
+ this . $node . classList . remove ( 'visible' ) ;
101
103
return this ;
102
104
}
103
105
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @djthorpe/js-framework" ,
3
- "version" : " 0.0.40 " ,
3
+ "version" : " 0.0.41 " ,
4
4
"description" : " Javascript Framework" ,
5
5
"main" : " dist/index.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments