mirror of
https://github.com/Doodle3D/Doodle3D-API
synced 2024-12-23 22:13:48 +01:00
9 lines
234 B
JavaScript
9 lines
234 B
JavaScript
|
/* */
|
||
|
var $ = require("./$"),
|
||
|
document = $.g.document,
|
||
|
isObject = $.isObject,
|
||
|
is = isObject(document) && isObject(document.createElement);
|
||
|
module.exports = function(it) {
|
||
|
return is ? document.createElement(it) : {};
|
||
|
};
|