404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.21.186.117: ~ $
/**
 * Debounce and throttle function's decorator plugin 1.0.5
 *
 * Copyright (c) 2009 Filatov Dmitry (alpha@zforms.ru)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 */

(function($) {

$.extend({

	debounce : function(fn, timeout, invokeAsap, ctx) {

		if(arguments.length == 3 && typeof invokeAsap != 'boolean') {
			ctx = invokeAsap;
			invokeAsap = false;
		}

		var timer;

		return function() {

			var args = arguments;
            ctx = ctx || this;

			invokeAsap && !timer && fn.apply(ctx, args);

			clearTimeout(timer);

			timer = setTimeout(function() {
				!invokeAsap && fn.apply(ctx, args);
				timer = null;
			}, timeout);

		};

	},

	throttle : function(fn, timeout, ctx) {

		var timer, args, needInvoke;

		return function() {

			args = arguments;
			needInvoke = true;
			ctx = ctx || this;

			if(!timer) {
				(function() {
					if(needInvoke) {
						fn.apply(ctx, args);
						needInvoke = false;
						timer = setTimeout(arguments.callee, timeout);
					}
					else {
						timer = null;
					}
				})();
			}

		};

	}

});

})(jQuery);

Filemanager

Name Type Size Permission Actions
MIT-LICENSE.txt File 1.07 KB 0644
additional-methods.js File 36.62 KB 0644
jquery-2.1.4.min.js File 82.37 KB 0644
jquery-ui-1.11.4.min.js File 234.79 KB 0644
jquery-ui-timepicker-addon.js File 73.95 KB 0644
jquery.ba-hashchange-1.3.js File 16.13 KB 0644
jquery.cookie.js File 3.63 KB 0644
jquery.debounce-1.0.5.js File 1.14 KB 0644
jquery.event.drag-2.2.js File 12.53 KB 0644
jquery.fullscreen.js File 1.61 KB 0644
jquery.mousewheel.js File 8.08 KB 0644
jquery.sortableTable.js File 8.07 KB 0644
jquery.svg.js File 55.32 KB 0644
jquery.tablesorter.js File 39.16 KB 0644
jquery.uitablefilter.js File 3.4 KB 0644
jquery.validate.js File 52.58 KB 0644