function fakeObserverFactory(el, callback)
  /* istanbul ignore next: hard to test in JSDOM */
  {
    eventOn(el, 'DOMNodeInserted', callback, false);
    eventOn(el, 'DOMNodeRemoved', callback, false);
    return {
      disconnect: function disconnect() {
        eventOff(el, 'DOMNodeInserted', callback, false);
        eventOff(el, 'DOMNodeRemoved', callback, false);
      }
    };
  }
// Emulate observer disconnect() method so that we can detach the events later
Emulate observer disconnect() method so that we can detach the events later
Emulate observer disconnect () method so that we can detach the events later
function fakeObserverFactory(el, callback)
  {
    eventOn(el, 'DOMNodeInserted', callback, false);
    eventOn(el, 'DOMNodeRemoved', callback, false);
    return {
      disconnect: function disconnect() {
        eventOff(el, 'DOMNodeInserted', callback, false);
        eventOff(el, 'DOMNodeRemoved', callback, false);
      }
    };
  }
function fakeObserverFactory ( el , callback ) { eventOn ( el , 'DOMNodeInserted' , callback , false ) ; eventOn ( el , 'DOMNodeRemoved' , callback , false ) ; return { disconnect : function disconnect ( ) { eventOff ( el , 'DOMNodeInserted' , callback , false ) ; eventOff ( el , 'DOMNodeRemoved' , callback , false ) ; } } ; }
Emulate observer disconnect() method so that we can detach the events later
Emulate observer disconnect () method so that we can detach the events later
/* istanbul ignore next: hard to test in JSDOM */