Departments in Javascript scopes
Bogdan Cuza
bogdan.cuza at hotmail.com
Sun Feb 21 16:37:40 UTC 2016
So the issue was that the first argument (id) should be a String, although I think the error message was really subtle about that part.
From: bogdan.cuza at hotmail.com
To: ubuntu-app-devel at lists.ubuntu.com
Subject: Departments in Javascript scopes
Date: Sun, 21 Feb 2016 01:35:24 +0700
Hi!
I am trying to create a department like this: var dep = new scopes.lib.Department(category.id, canned_query, category.name); but I'm getting "Error: Expected an object". I think the problem is that I am trying to do this dynamically, I am doing this in a callback to my fetching function and it seems to be working fine outside of it.How could I fix this and why (if I am right about the situation) is it saying "expected an object"?
Thanks,Bogdan.
--
Ubuntu-app-devel mailing list
Ubuntu-app-devel at lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-app-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-app-devel/attachments/20160221/60ba3041/attachment.html>
More information about the Ubuntu-app-devel
mailing list