Skip to content

Commit

Permalink
fix: if no $element store noop
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelkaron committed May 8, 2017
1 parent a7e64d9 commit c68055e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions walk.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@
.append($children);
}

json.$element = function () {
return $element;
}
json.$element = $element
? function () {
return $element;
}
: noop;
}

return $element || $children;
Expand Down

0 comments on commit c68055e

Please sign in to comment.