sealcode / sealious

An extensible, declarative node framework
25 stars 2 forks source link

Field-type should not need to be a constructor #206

Closed kuba-orlik closed 9 years ago

arkadiusz-wieczorek commented 9 years ago

I will change old field-types to new API.

arkadiusz-wieczorek commented 9 years ago

Ok, I changed it. At now we have problem with constructor of Field-type in resource-type-field.js.

/home/arkadiusz/Projects/Sealious-development/Sealious/lib/chip-types/resource-type-field.js:21
    this.type = new type_constructor();
                ^
TypeError: object is not a function
    at ResourceTypeField (/home/arkadiusz/Projects/Sealious-development/Sealious/lib/chip-types/resource-type-field.js:21:17)
    at add_field (/home/arkadiusz/Projects/Sealious-development/Sealious/lib/chip-types/resource-type.js:36:22)
    at add_fields (/home/arkadiusz/Projects/Sealious-development/Sealious/lib/chip-types/resource-type.js:47:9)
    at _process_declaration (/home/arkadiusz/Projects/Sealious-development/Sealious/lib/chip-types/resource-type.js:29:10)
    at ResourceType (/home/arkadiusz/Projects/Sealious-development/Sealious/lib/chip-types/resource-type.js:21:7)
    at Object.<anonymous> (/home/arkadiusz/Projects/Sealious-development/Sealious/lib/base-chips/resource_type.user.js:2:12)