8 lines
574 B
JavaScript
Executable File

/*!
* Ladda for jQuery
* http://lab.hakim.se/ladda
* MIT licensed
*
* Copyright (C) 2015 Hakim El Hattab, http://hakim.se
*/
!function(a,t){if(void 0===t)return console.error("jQuery required for Ladda.jQuery");var d=[];(t=t.extend(t,{ladda:function(t){"stopAll"===t&&a.stopAll()}})).fn=t.extend(t.fn,{ladda:function(e){var i=d.slice.call(arguments,1);return"bind"===e?(i.unshift(t(this).selector),a.bind.apply(a,i)):t(this).each(function(){var d,n=t(this);void 0===e?n.data("ladda",a.create(this)):(d=n.data("ladda"))[e].apply(d,i)}),this}})}(this.Ladda,this.jQuery);