vendor/components/indefinido-observable/lib/adapters/rivets.js in ende-0.4.5 vs vendor/components/indefinido-observable/lib/adapters/rivets.js in ende-0.4.6

- old
+ new

@@ -1,10 +1,12 @@ exports.adapter = { subscribe: function(record, attribute_path, callback) { if (record == null) { throw new TypeError('observable.adapters.rivets.subscribe: No record provided for subscription'); } - return record.subscribe(attribute_path, callback); + if (attribute_path) { + return record.subscribe(attribute_path, callback); + } }, unsubscribe: function(record, attribute_path, callback) { if (record == null) { throw new TypeError('observable.adapters.rivets.unsubscribe: No record provided for subscription'); }