Skip to content

Commit 0a6badf

Browse files
committed
Fixed type bug
1 parent 8956adc commit 0a6badf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rule.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ class Rule
241241
child = element.firstElementChild
242242
while (child)
243243
# If no class name you can skip setting up the dictionary
244-
if child.getAttribute('class') isnt ''
244+
if typeof(child.getAttribute('class')) is 'string'
245245
for elementKey in child.getAttribute('class').split(' ')
246246
elementKey = '.' + elementKey
247247
# Check existing dictionary array

0 commit comments

Comments
 (0)