text: /**
   * Created by xx on 15/9/6.
   */
  define([], function () {
  
      var $filterProvider;
  
      function setFilterProvider(value) {
          $filterProvider = value;
      }
  
      function register(filter) {
          if(filter){
              if (!$filterProvider) {
                  throw new Error("$setProvide is not set!");
              }
              $filterProvider.register(filter[0], filter[1]);
          }else{
              $filterProvider.register = null;
          }
  
      }
  
      return {
          setFilterProvider: setFilterProvider,
          register: register
      }
  });