let dispatcher = require('../dispatcher');
let searchAction = require('./search-action');
module.exports = function(config){
  config = config || {};
  if(!config.identifier){
    console.warn('Your action should have an identifier');
  }
  if(!config.service){
    console.warn('Your action should have a service');
  }
  return {
    /**
     * Build the search for the identifier scope.
     * @return {function} The search function for the given identifier.
     */
    search: searchAction(config),
    /**
     * Update the query for the identifier scope.
     * @param  {string} value - The query value
     * @return {function} The update query function for the given identifier.
     */
    updateQuery(value){
      return dispatcher.handleViewAction({
        data: {
          query: value
        },
        type: 'update',
        identifier: config.identifier
      });
    },
    /**
     * Update the scope for the identifier scope.
     * @param  {string} value - The scope value
     * @return {function} The update scope function for the given identifier.
     */
    updateScope(value){
      return dispatcher.handleViewAction({
        data: {
          scope: value
        },
        type: 'update',
        identifier: config.identifier
      });
    }
  };
};

@@ -703,401 +703,18 @@
 date
-Query(value)%7B%0A      return dispatcher.handleViewAction(%7B%0A        data: %7B%0A          query: value%0A        %7D,%0A        type: 'update',%0A        identifier: config.identifier%0A      %7D);%0A    %7D,%0A    /**%0A     * Update the scope for the identifier scope.%0A     * @param  %7Bstring%7D value - The scope value%0A     * @return %7Bfunction%7D The update scope function for the given identifier.%0A     */%0A    updateScope
+Properties
 (val
@@ -779,42 +779,13 @@
 ta: 
-%7B%0A          scope: value%0A        %7D
+value
 ,%0A  

Add update properties.