 determine when elements have been added in IE8.
 ###    
 startInDocumentListening = ->
-  if mutationEvents()
+  if mutationEvents
     # Use mutation events.
     if document.body
       # The document's ready for us to wire up mutation event handlers.



###
Return true if we can rely on DOM mutation events to detect DOM changes.
### 
mutationEvents = ->
  # Since the only QuickUI-supported browser that doesn't support
  # mutation events is IE 8, we just look for that. If need be, we
  # could programmatically detect support using something like
  # Diego Perini's NWMatcher approach.
  not jQuery.browser.msie or parseInt( jQuery.browser.version ) >= 9


###
Remove the given element from the list of callbacks, effectively canceling its

Stop listening for element insertion events.
###
stopInDocumentListening = ->
  if mutationEvents
    jQuery( "body" ).off "DOMNodeInserted", Control.elementInserted
    inDocumentListening = false
  else
