benchmarks/scenarios/ember.js
function (type) {
      var namespace = _emberMetalProperty_get.get(this, 'namespace');
      var suffix = _emberRuntimeSystemString.classify(type);
      var typeRegexp = new RegExp(suffix + '$');

      var known = _emberMetalDictionary.default(null);
      var knownKeys = Object.keys(namespace);
      for (var index = 0, _length = knownKeys.length; index < _length; index++) {
        var _name = knownKeys[index];

        if (typeRegexp.test(_name)) {
          var containerName = this.translateToContainerFullname(type, _name);

          known[containerName] = true;
        }
      }

      return known;
    }
function (type) {
      var namespace = _emberMetalProperty_get.get(this, 'namespace');
      var suffix = _emberRuntimeSystemString.classify(type);
      var typeRegexp = new RegExp(suffix + '$');

      var known = _emberMetalDictionary.default(null);
      var knownKeys = Object.keys(namespace);
      for (var index = 0, _length = knownKeys.length; index < _length; index++) {
        var _name = knownKeys[index];

        if (typeRegexp.test(_name)) {
          var containerName = this.translateToContainerFullname(type, _name);

          known[containerName] = true;
        }
      }

      return known;
    }
function ( type ) { var namespace = _emberMetalProperty_get . get ( this , 'namespace' ) ; var suffix = _emberRuntimeSystemString . classify ( type ) ; var typeRegexp = new RegExp ( suffix + '$' ) ; var known = _emberMetalDictionary . default ( null ) ; var knownKeys = Object . keys ( namespace ) ; for ( var index = 0 , _length = knownKeys . length ; index < _length ; index ++ ) { var _name = knownKeys [ index ] ; if ( typeRegexp . test ( _name ) ) { var containerName = this . translateToContainerFullname ( type , _name ) ; known [ containerName ] = true ; } } return known ; }
Used to iterate all items of a given type.
@method knownForType
@param {String} type the type to search for
@private
Used to iterate all items of a given type .