// Mix in the passed in options with the default options
this.options = $.extend({}, this.default_options, options);
// Mix in the passed in options with the default options
this.options = $.extend({}, this.default_options, options);
- case NEW_RECORD:
- fn = 'new_record';
- break;
- case CLEAR_RECORDS:
- fn = 'clear_records';
- break;
- case IN_PROGRESS:
- fn = 'query_in_progress';
- break;
- case DONE:
- fn = 'query_done';
- break;
- case FIELD_STATE_CHANGED:
- fn = 'field_state_changed';
- break;
- default:
- return;
+ case NEW_RECORD:
+ fn = 'new_record';
+ break;
+ case CLEAR_RECORDS:
+ fn = 'clear_records';
+ break;
+ case IN_PROGRESS:
+ fn = 'query_in_progress';
+ break;
+ case DONE:
+ fn = 'query_done';
+ break;
+ case FIELD_STATE_CHANGED:
+ fn = 'field_state_changed';
+ break;
+ default:
+ return;
return $.proxy(function(e, event_type, record) {
return this['_' + type + '_handler'](prefix, event_type, record);
}, this);
},
return $.proxy(function(e, event_type, record) {
return this['_' + type + '_handler'](prefix, event_type, record);
}, this);
},
var ret = this.options.plugin_uuid;
for (var i = 0; i < arguments.length; i++) {
ret = ret + manifold.separator + arguments[i];
var ret = this.options.plugin_uuid;
for (var i = 0; i < arguments.length; i++) {
ret = ret + manifold.separator + arguments[i];
- case 'string':
- if (!(key in record))
- return null;
- return this.id_from_key(key, record[key]);
-
- default:
- throw 'Not implemented';
+ case 'string':
+ if (!(key in record))
+ return null;
+ return this.id_from_key(key, record[key]);
+
+ default:
+ throw 'Not implemented';