- Add serve.py to resolve clean Quartz URLs to .html files - Regenerate Quartz site with correct baseUrl http://100.118.5.51:9120 - 196 HTML files emitted; all internal links now resolve
12 lines
286 B
JavaScript
12 lines
286 B
JavaScript
define(['./isObject', './isArray', './extend'], function (isObject, isArray, extend) {
|
|
|
|
// Create a (shallow-cloned) duplicate of an object.
|
|
function clone(obj) {
|
|
if (!isObject(obj)) return obj;
|
|
return isArray(obj) ? obj.slice() : extend({}, obj);
|
|
}
|
|
|
|
return clone;
|
|
|
|
});
|