Skip to content

Question for lines 308 - 317 #2

@relaxedtomato

Description

@relaxedtomato

I am receiving the following error when trying to use models. Not sure what the issue is.

return this.attribute(_.deepCopy(attribute)).code(code).control();
                                                                   ^
TypeError: Object [object Object] has no method 'control'

 // reading
 ModelMaker.prototype.i = function (code, attribute) {
 console.log('hello');
 return this.attribute(_.deepCopy(attribute).code(code).reading());
} ; 

// control
ModelMaker.prototype.o = function (code, attribute) {
return this.attribute(_.deepCopy(attribute).code(code).control());
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions