[extensions-web/wip/tomtryf/redesign: 15/18] modal.js: Use event.dispatch.apply() instead of event.event.apply() for the modal
- From: Tom Tryfonidis <tomtryf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web/wip/tomtryf/redesign: 15/18] modal.js: Use event.dispatch.apply() instead of event.event.apply() for the modal
- Date: Thu, 23 Feb 2017 19:19:00 +0000 (UTC)
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]