<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'>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></body>
</html>