/**
* Get an object representing the state of this item
*
- * @returns {Object} Object representing the current data state
+ * @return {Object} Object representing the current data state
* of the object
*/
mw.rcfilters.dm.SavedQueryItemModel.prototype.getState = function () {
return this.data;
};
+ /**
+ * Get the combined data of this item as a flat object of parameters
+ *
+ * @return {Object} Combined parameter data
+ */
+ mw.rcfilters.dm.SavedQueryItemModel.prototype.getCombinedData = function () {
+ return $.extend( true, {}, this.data.params, this.data.highlights );
+ };
+
/**
* Check whether this item is the default
*