function buildAdaptor (options) {
    return {
      filter: function (obj) {
        return typeof obj === 'object' && options.check(obj);
      },

      wrap: function (obj, nav) {
        return {
          el: function () { return options.el(obj); },
          remove: function () { return options.remove(obj); },
          onsleep: function () { options.onsleep(obj); },
          onwake: function () { options.onwake(obj); }
        };
      }
    };
  }
/**
   * buildAdaptor:
   * (internal) Helper for building a generic filter
   */
(internal) Helper for building a generic filter
( internal ) Helper for building a generic filter
function buildAdaptor (options) {
    return {
      filter: function (obj) {
        return typeof obj === 'object' && options.check(obj);
      },
      wrap: function (obj, nav) {
        return {
          el: function () { return options.el(obj); },
          remove: function () { return options.remove(obj); },
          onsleep: function () { options.onsleep(obj); },
          onwake: function () { options.onwake(obj); }
        };
      }
    };
  }
function buildAdaptor ( options ) { return { filter : function ( obj ) { return typeof obj === 'object' && options . check ( obj ) ; } , wrap : function ( obj , nav ) { return { el : function ( ) { return options . el ( obj ) ; } , remove : function ( ) { return options . remove ( obj ) ; } , onsleep : function ( ) { options . onsleep ( obj ) ; } , onwake : function ( ) { options . onwake ( obj ) ; } } ; } } ; }
buildAdaptor:
 (internal) Helper for building a generic filter
buildAdaptor : ( internal ) Helper for building a generic filter