-
Notifications
You must be signed in to change notification settings - Fork 13
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
.attr is not a function #23
Comments
I also just tried this on the kranium 0.2 branch to the same result. |
From just a quick look, my guess is that it is the log function that is undefined, not attr. Is there really a global function called 'log' in your context? Perhaps you meant to write console.log? (written by David, not Jacob) |
Yes, there's a log function in scope. If you take a look at the error message it explains the statement it's evaluating. The .attr function, in any context we've used it, is undefined. |
Absolutely right. Should have turned on brain before polluting the internet. Sorry! :) |
using the following code:
results in the following error when the .cat-btn is clicked:
[WARN] Exception in event callback. {
line = 59;
message = "'undefined' is not a function (evaluating '$(e.source).attr("id")')";
name = TypeError;
sourceId = 247376960;
}
I'm running the titanium sdk version 2.0 with Kranium v. 0.1.4
The text was updated successfully, but these errors were encountered: