From 0b1b650da36911a5bb16b04ac282683105d8485a Mon Sep 17 00:00:00 2001 From: Rijn Date: Tue, 14 Feb 2017 14:41:21 -0600 Subject: [PATCH] fix #269. IE<=11 do not support toString. --- src/components/carousel/carousel.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/carousel/carousel.vue b/src/components/carousel/carousel.vue index 8dcc957..d4127eb 100644 --- a/src/components/carousel/carousel.vue +++ b/src/components/carousel/carousel.vue @@ -73,7 +73,7 @@ type: [String, Number], default: 'auto', validator (value) { - return value === 'auto' || toString.call(value) === '[object Number]'; + return value === 'auto' || Object.prototype.toString.call(value) === '[object Number]'; } } }, -- libgit2 0.21.4