Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question for lines 308 - 317 #2

Open
relaxedtomato opened this issue Feb 17, 2015 · 6 comments
Open

Question for lines 308 - 317 #2

relaxedtomato opened this issue Feb 17, 2015 · 6 comments

Comments

@relaxedtomato
Copy link

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());
};
@relaxedtomato
Copy link
Author

Or this issue, basically for the 'code' call.

return this.attribute(_.deepCopy(attribute).code(code).control());
                                                ^
TypeError: Cannot call method 'code' of undefined

@dpjanes
Copy link
Owner

dpjanes commented Feb 18, 2015

Hi Richard,

How is this being called?

On Tue, Feb 17, 2015 at 6:25 PM, Richard [email protected] wrote:

Or this issue, basically for the 'code' call.

return this.attribute(_.deepCopy(attribute).code(code).control());
^
TypeError: Cannot call method 'code' of undefined


Reply to this email directly or view it on GitHub
#2 (comment).

@relaxedtomato
Copy link
Author

I am calling it via 'node model.js' for homestar-lifx.

@dpjanes
Copy link
Owner

dpjanes commented Feb 18, 2015

Can I get the complete stack trace?

D.

On Tue, Feb 17, 2015 at 8:29 PM, Richard [email protected] wrote:

I am calling it via 'node model.js' for homestar-lifx.


Reply to this email directly or view it on GitHub
#2 (comment).

@dpjanes
Copy link
Owner

dpjanes commented Feb 18, 2015

I think I've got the problem fixed.

D.

On Wed, Feb 18, 2015 at 3:14 AM, David Janes [email protected]
wrote:

Can I get the complete stack trace?

D.

On Tue, Feb 17, 2015 at 8:29 PM, Richard [email protected] wrote:

I am calling it via 'node model.js' for homestar-lifx.


Reply to this email directly or view it on GitHub
#2 (comment).

@relaxedtomato
Copy link
Author

I haven't had a chance to take a look, will come back to this tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants