public/libs/dhtmlx/grid.js
// rAF throttler, aggregates multiple repeated redraw calls within single animframe
rAF throttler, aggregates multiple repeated redraw calls within single animframe
rAF throttler aggregates multiple repeated redraw calls within single animframe
function raft(fn) {
	if (!rAF)
		{ return fn; }
	var id, ctx, args;
	function call() {
		id = 0;
		fn.apply(ctx, args);
	}
	return function() {
		ctx = this;
		args = arguments;
		if (!id) { id = rAF(call); }
	};
}
function raft ( fn ) { if ( ! rAF ) { return fn ; } var id , ctx , args ; function call ( ) { id = 0 ; fn . apply ( ctx , args ) ; } return function ( ) { ctx = this ; args = arguments ; if ( ! id ) { id = rAF ( call ) ; } } ; }
rAF throttler, aggregates multiple repeated redraw calls within single animframe
rAF throttler aggregates multiple repeated redraw calls within single animframe