mirror of
https://github.com/github/semantic.git
synced 2024-11-29 02:44:36 +03:00
Only wrap elements that exist.
This commit is contained in:
parent
ec9c29e29d
commit
91093f1aac
@ -24,6 +24,7 @@
|
||||
}
|
||||
|
||||
function wrap(tagName, element) {
|
||||
if (element == null) { return null; }
|
||||
var node = document.createElement(tagName);
|
||||
node.appendChild(element);
|
||||
return node;
|
||||
|
Loading…
Reference in New Issue
Block a user