<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>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.<br><br><div><hr id="stopSpelling">From: bogdan.cuza@hotmail.com<br>To: ubuntu-app-devel@lists.ubuntu.com<br>Subject: Departments in Javascript scopes<br>Date: Sun, 21 Feb 2016 01:35:24 +0700<br><br>

<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>
<div dir="ltr">Hi!<div><br></div><div>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.</div><div>How could I fix this and why (if I am right about the situation) is it saying "expected an object"?</div><div><br></div><div>Thanks,</div><div>Bogdan.</div>                                    </div>
<br>-- 
Ubuntu-app-devel mailing list
Ubuntu-app-devel@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-app-devel</div>                                         </div></body>
</html>