Skip to content

Commit

Permalink
Hopefully fix #358 split on classname not a function
Browse files Browse the repository at this point in the history
  • Loading branch information
lefthandedgoat committed Apr 2, 2017
1 parent a8c464e commit 54a13ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/canopy/canopy.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 54a13ff

Please sign in to comment.