implemented support for synchronous type creation

This commit is contained in:
Kevin Jahns
2016-08-26 13:53:31 +02:00
parent b3ba8e7546
commit 34f365cd8f
3 changed files with 30 additions and 15 deletions

View File

@@ -14,7 +14,7 @@ module.exports = Y
Y.requiringModules = requiringModules
Y.extend = function (name, value) {
if (value instanceof Y.utils.CustomType) {
if (value instanceof Y.utils.CustomTypeDefinition) {
Y[name] = value.parseArguments
} else {
Y[name] = value