Skip to content

Question for lines 308 - 317 #2

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());
};

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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