— store.componentConfig = Object.assign({}, node.dataset)
— But it does not work properly on Safari (ios9)
— Because fuck everything
— Does anyone knows a -decent- and -elegant- method to do the same thing?
— I bet Floofies knows :D
—
function clone(obj) {
return Object.keys(obj).reduce(function (result, key) {
result[key] = obj[key];
return result;
}, {});
}
Message permanent page
— Doesn't Object.new
do this job
— Or maybe that was Object.create