From ea964686029e927548351c8e4e585dfd7cfc896f Mon Sep 17 00:00:00 2001 From: Patrick Mooney Date: Tue, 24 Jun 2014 17:43:25 -0500 Subject: [PATCH] Use proper Change object detection in client --- lib/client/client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/client/client.js b/lib/client/client.js index 27f0202..4643e57 100644 --- a/lib/client/client.js +++ b/lib/client/client.js @@ -486,11 +486,11 @@ Client.prototype.modify = function modify(name, change, controls, callback) { }); } - if (change instanceof Change) { + if (Change.isChange(change)) { changes.push(change); } else if (Array.isArray(change)) { change.forEach(function (c) { - if (c instanceof Change) { + if (Change.isChange(c)) { changes.push(c); } else { changeFromObject(c);