X-Git-Url: https://git.r.bdr.sh/rbdr/serpentity/blobdiff_plain/a2949b6a6621627d0382fd1702d067b7b82322ed..60a6915a0b24975e28a02b28e43d34f6dbb15625:/dist/serpentity.js?ds=sidebyside diff --git a/dist/serpentity.js b/dist/serpentity.js index 2f91c25..3522b06 100644 --- a/dist/serpentity.js +++ b/dist/serpentity.js @@ -472,7 +472,19 @@ Class(Serpentity, "NodeCollection")({ * components can be any class whatsoever. */ Class(Serpentity, "Component")({ + prototype : { + init : function init(config) { + var property; + config = config || {}; + + for (property in config) { + if (config.hasOwnProperty(property)) { + this[property] = config[property]; + } + } + } + } }); /*