solarnetwork-d3.js
function(elm, finished) {
      var listener = undefined;
      var self = this;
      listener = function(event) {
        if (event.target === elm) {
          elm.removeEventListener(self.support.trEndEvent, listener, false);
          finished.apply(elm);
        }
      };
      elm.addEventListener(self.support.trEndEvent, listener, false);
    }
function(elm, finished) {
      var listener = undefined;
      var self = this;
      listener = function(event) {
        if (event.target === elm) {
          elm.removeEventListener(self.support.trEndEvent, listener, false);
          finished.apply(elm);
        }
      };
      elm.addEventListener(self.support.trEndEvent, listener, false);
    }
function ( elm , finished ) { var listener = undefined ; var self = this ; listener = function ( event ) { if ( event . target === elm ) { elm . removeEventListener ( self . support . trEndEvent , listener , false ) ; finished . apply ( elm ) ; } } ; elm . addEventListener ( self . support . trEndEvent , listener , false ) ; }
Apply a one-time animation callback listener.

@param elm the element to add the one-time listener to
@param finished
@preserve
Apply a one - time animation callback listener .