benchmarks/scenarios/ember.js
function validatePropertyInjections(factory) {
    var proto = factory.proto();
    var types = [];
    var key, desc, validator, i, l;

    for (key in proto) {
      desc = proto[key];
      if (desc instanceof _emberMetalInjected_property.default && types.indexOf(desc.type) === -1) {
        types.push(desc.type);
      }
    }

    if (types.length) {
      for (i = 0, l = types.length; i < l; i++) {
        validator = typeValidators[types[i]];

        if (typeof validator === 'function') {
          validator(factory);
        }
      }
    }

    return true;
  }
function validatePropertyInjections(factory) {
    var proto = factory.proto();
    var types = [];
    var key, desc, validator, i, l;

    for (key in proto) {
      desc = proto[key];
      if (desc instanceof _emberMetalInjected_property.default && types.indexOf(desc.type) === -1) {
        types.push(desc.type);
      }
    }

    if (types.length) {
      for (i = 0, l = types.length; i < l; i++) {
        validator = typeValidators[types[i]];

        if (typeof validator === 'function') {
          validator(factory);
        }
      }
    }

    return true;
  }
function validatePropertyInjections ( factory ) { var proto = factory . proto ( ) ; var types = [ ] ; var key , desc , validator , i , l ; for ( key in proto ) { desc = proto [ key ] ; if ( desc instanceof _emberMetalInjected_property . default && types . indexOf ( desc . type ) === - 1 ) { types . push ( desc . type ) ; } } if ( types . length ) { for ( i = 0 , l = types . length ; i < l ; i ++ ) { validator = typeValidators [ types [ i ] ] ; if ( typeof validator === 'function' ) { validator ( factory ) ; } } } return true ; }
Validation function that runs per-type validation functions once for each
injected type encountered.

@private
@method validatePropertyInjections
@since 1.10.0
@for Ember
@param {Object} factory The factory object
Validation function that runs per - type validation functions once for each injected type encountered .