Commit 0b1b650da36911a5bb16b04ac282683105d8485a
1 parent
d33b339a
fix #269.
IE<=11 do not support toString.
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/components/carousel/carousel.vue
| ... | ... | @@ -73,7 +73,7 @@ |
| 73 | 73 | type: [String, Number], |
| 74 | 74 | default: 'auto', |
| 75 | 75 | validator (value) { |
| 76 | - return value === 'auto' || toString.call(value) === '[object Number]'; | |
| 76 | + return value === 'auto' || Object.prototype.toString.call(value) === '[object Number]'; | |
| 77 | 77 | } |
| 78 | 78 | } |
| 79 | 79 | }, | ... | ... |