[extensions-web/wip/tomtryf/redesign: 15/18] modal.js: Use event.dispatch.apply() instead of event.event.apply() for the modal



commit 4e27fddffe75ec5eaf7990932294d0a05880d845
Author: Tom Tryfonidis <tomtryf gnome org>
Date:   Thu Feb 23 20:49:05 2017 +0200

    modal.js: Use event.dispatch.apply() instead of event.event.apply() for the modal
    
    $.event.handle.apply() is deprecated since JQuery 1.9 version

 sweettooth/static/js/modal.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/sweettooth/static/js/modal.js b/sweettooth/static/js/modal.js
index b611b3c..d2ca001 100644
--- a/sweettooth/static/js/modal.js
+++ b/sweettooth/static/js/modal.js
@@ -9,7 +9,7 @@ define(['jquery'], function($) {
     // This is a trick that fires jQuery's event handler during the
     // capturing phase.
     function captureHandler() {
-        $.event.handle.apply(document.body, arguments);
+        $.event.dispatch.apply(document.body, arguments);
     }
 
     exports.activateModal = function(elem, closeFunction) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]