initial data for android app, api a little simplified
[wolnelektury.git] / wolnelektury / static / js / jquery.eventdelegation.js
index 5ecba6e..52fce07 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
  * jQuery Event Delegation Plugin - jquery.eventdelegation.js
  * Fast flexible event handling
  *
  * jQuery Event Delegation Plugin - jquery.eventdelegation.js
  * Fast flexible event handling
  *
                'keydown',
                'keypress',
                'keyup'
                'keydown',
                'keypress',
                'keyup'
-               ], function(i, eventName) {     
+               ], function(i, eventName) {
                        allowed[eventName] = true;
        });
                        allowed[eventName] = true;
        });
-       
+
        $.fn.extend({
                delegate: function (event, selector, f) {
                        return $(this).each(function () {
        $.fn.extend({
                delegate: function (event, selector, f) {
                        return $(this).each(function () {
@@ -32,7 +32,7 @@
                                        $(this).bind(event, function (e) {
                                                var el = $(e.target),
                                                        result = false;
                                        $(this).bind(event, function (e) {
                                                var el = $(e.target),
                                                        result = false;
-                                               
+
                                                while (!$(el).is('body')) {
                                                        if ($(el).is(selector)) {
                                                                result = f.apply($(el)[0], [e]);
                                                while (!$(el).is('body')) {
                                                        if ($(el).is(selector)) {
                                                                result = f.apply($(el)[0], [e]);
@@ -40,7 +40,7 @@
                                                                        e.preventDefault();
                                                                return;
                                                        }
                                                                        e.preventDefault();
                                                                return;
                                                        }
-                                                       
+
                                                        el = $(el).parent();
                                                }
                                        });
                                                        el = $(el).parent();
                                                }
                                        });