diff options
Diffstat (limited to 'dist/serpentity.js')
| -rw-r--r-- | dist/serpentity.js | 12 |
1 files changed, 12 insertions, 0 deletions
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]; + } + } + } + } }); /* |