Skip to content

Instantly share code, notes, and snippets.

View mogadanez's full-sized avatar

Aleksandr Popov mogadanez

  • Prague, Czech Republic
View GitHub Profile
rivets.configure({
adapter: {
subscribe: function (obj, keypath, callback) {
var parts = [keypath];
var index = keypath.indexOf('.');
if (index > -1) parts = keypath.split('.');
this.subscribe_nested(parts, obj, callback);
},
subscribe_nested: function rivets_backbone_adapter_subscribe_nested(parts, obj, callback) {