dist/js/flarej.js
function lazyDo(fn, timeOut, doName, obj) {
  var sto = null;

  if (!obj) {
    obj = window;
  }
  if (timeOut == null) {
    timeOut = 25;
  }

  //If before the implementation of the operation has not exceeded the time,then make it cancel.
  if (doName && obj[doName]) {
    clearTimeout(obj[doName]);
  }

  //Delay for a period of time to perform the operation.
  sto = setTimeout(function () {
    fn.call(obj);
  }, timeOut);

  if (doName) {
    obj[doName] = sto;
  }

  return sto;
}
function lazyDo(fn, timeOut, doName, obj) {
  var sto = null;

  if (!obj) {
    obj = window;
  }
  if (timeOut == null) {
    timeOut = 25;
  }

  //If before the implementation of the operation has not exceeded the time,then make it cancel.
  if (doName && obj[doName]) {
    clearTimeout(obj[doName]);
  }

  //Delay for a period of time to perform the operation.
  sto = setTimeout(function () {
    fn.call(obj);
  }, timeOut);

  if (doName) {
    obj[doName] = sto;
  }

  return sto;
}
function lazyDo ( fn , timeOut , doName , obj ) { var sto = null ; if ( ! obj ) { obj = window ; } if ( timeOut == null ) { timeOut = 25 ; } //If before the implementation of the operation has not exceeded the time,then make it cancel. if ( doName && obj [ doName ] ) { clearTimeout ( obj [ doName ] ) ; } //Delay for a period of time to perform the operation. sto = setTimeout ( function ( ) { fn . call ( obj ) ; } , timeOut ) ; if ( doName ) { obj [ doName ] = sto ; } return sto ; }
Lazy to do something
Lazy to do something