Skip to content

Commit

Permalink
Fix (needs a test) for null/undefined value when using `className…
Browse files Browse the repository at this point in the history
…` compat alias. Fixes #181
  • Loading branch information
developit committed Jun 7, 2016
1 parent fa0e8c5 commit 8724662
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ export default {
if (!attrs || isFunction(n.nodeName)) return;

// normalize className to class.
let p = attrs.className;
if (p) {
attrs['class'] = p;
if ('className' in attrs) {
attrs['class'] = attrs.className;
delete attrs.className;
}

Expand Down

0 comments on commit 8724662

Please sign in to comment.