build/lib/rulefactory.js
function(element) {
  'use strict';

  return function(dom, reporter) {
    var that = this;

    dom.$(element).each(function(index, item){
      reporter.error(that.message, 0, that.name);

      throw dom.$(item).parent().html();
    });
  };
}
function(element) {
  'use strict';

  return function(dom, reporter) {
    var that = this;

    dom.$(element).each(function(index, item){
      reporter.error(that.message, 0, that.name);

      throw dom.$(item).parent().html();
    });
  };
}
function ( element ) { 'use strict' ; return function ( dom , reporter ) { var that = this ; dom . $ ( element ) . each ( function ( index , item ) { reporter . error ( that . message , 0 , that . name ) ; throw dom . $ ( item ) . parent ( ) . html ( ) ; } ) ; } ; }
RuleFactory object.
Decouples rule creation from AriaLinter
 
Given an element, generates a function that checks that that element is not in the dom.
RuleFactory object . Decouples rule creation from AriaLinter Given an element generates a function that checks that that element is not in the dom .