File tree 2 files changed +14
-12
lines changed
2 files changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -17,17 +17,19 @@ export default {
17
17
18
18
Vue . mixin ( {
19
19
created ( ) {
20
- if ( options . hasOwnProperty ( 'bg' ) ) {
21
- vm . bg = options . bg
22
- }
23
- if ( options . hasOwnProperty ( 'icon' ) ) {
24
- vm . icon = options . icon
25
- }
26
- if ( options . hasOwnProperty ( 'size' ) ) {
27
- vm . size = options . size
28
- }
29
- if ( options . hasOwnProperty ( 'icon_color' ) ) {
30
- vm . icon_color = options . icon_color
20
+ if ( options !== null && options !== undefined ) {
21
+ if ( options . hasOwnProperty ( 'bg' ) ) {
22
+ vm . bg = options . bg
23
+ }
24
+ if ( options . hasOwnProperty ( 'icon' ) ) {
25
+ vm . icon = options . icon
26
+ }
27
+ if ( options . hasOwnProperty ( 'size' ) ) {
28
+ vm . size = options . size
29
+ }
30
+ if ( options . hasOwnProperty ( 'icon_color' ) ) {
31
+ vm . icon_color = options . icon_color
32
+ }
31
33
}
32
34
}
33
35
} )
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vuejs-loading-screen" ,
3
- "version" : " 1.0.6 " ,
3
+ "version" : " 1.0.7 " ,
4
4
"description" : " Blocking screen while process worked" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments