Sha256: be15562bf95ca4f1e5b90764ed17e3fadc0f9899c12d3131096b02cbd8ab4d1e
Contents?: true
Size: 985 Bytes
Versions: 123
Compression:
Stored size: 985 Bytes
Contents
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); }, unsubscribe: function(record, attribute_path, callback) { if (record == null) { throw new TypeError('observable.adapters.rivets.unsubscribe: No record provided for subscription'); } return record.unsubscribe(attribute_path, callback); }, read: function(record, attribute_path) { if (record == null) { throw new TypeError('observable.adapters.rivets.read: No record provided for subscription'); } return record[attribute_path]; }, publish: function(record, attribute_path, value) { if (record == null) { throw new TypeError('observable.adapters.rivets.publish: No record provided for subscription'); } return record[attribute_path] = value; } };
Version data entries
123 entries across 74 versions & 1 rubygems