Skip to content

Commit

Permalink
Fixed super-edge case on client-side.
Browse files Browse the repository at this point in the history
  • Loading branch information
steveWang committed Aug 6, 2011
1 parent 9577234 commit fc29fae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions lib/client/now.js
Expand Up @@ -106,11 +106,8 @@
var path = fqn.split('.');
var currVar = util.forceGetParentVarAtFqn(scope, fqn);
var key = path.pop();
fqnMap.set(fqn, value);
fqnMap.set(fqn, (value && typeof value === 'object') ? [] : value);
currVar[key] = value;
if (value && typeof value === 'object') {
currVar[key] = util.isArray(value) ? [] : {};
}
if (!(isIE || util.isArray(currVar))) {
util.watch(currVar, key, fqn);
}
Expand Down
1 change: 0 additions & 1 deletion lib/handlers.js
Expand Up @@ -4,7 +4,6 @@ exports.initialize = function (nowjs) {
function multicall(group, fqn, args) {
var user, func;
for (var i = 0, k = Object.keys(group.users), l = k.length; i < l; i++) {

user = group.users[k[i]];
if (group.excludes[user.user.clientId]) {
continue;
Expand Down

0 comments on commit fc29fae

Please sign in to comment.