From 54a13ff9703fefb380630c204489a928f9371579 Mon Sep 17 00:00:00 2001 From: Chris Holt Date: Sun, 2 Apr 2017 09:56:19 -0600 Subject: [PATCH] Hopefully fix #358 split on classname not a function --- src/canopy/canopy.fs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/canopy/canopy.fs b/src/canopy/canopy.fs index 2c1929a9..971a9052 100644 --- a/src/canopy/canopy.fs +++ b/src/canopy/canopy.fs @@ -152,7 +152,7 @@ let private suggestOtherSelectors cssSelector = var classes = []; var all = document.getElementsByTagName('*'); for (var i=0, max=all.length; i < max; i++) { - var ary = all[i].className.split(' '); + var ary = all[i].className.toString().split(' '); for(var j in ary){ if(ary[j] === ''){ ary.splice(j,1);