- var url='/results/' + options.query_uuid + '/changed';
- $.subscribe(url, {instance: $this}, update_list);
- if (simplelist_debug) window.console.log('subscribing to ' + url);
- $this.data('SimpleList', {options: options, target : this, SimpleList : SimpleList});
+ var channel='/results/' + options.query_uuid + '/changed';
+ /* passing $this as 2nd arg: callbacks will retrieve $this as e.data */
+ $.subscribe(channel, $this, update_list);
+ if (simplelist_debug) window.console.log('subscribing to ' + channel);
+ $this.data('SimpleList', {options: options, SimpleList : SimpleList});