Popup: Apply tizen style popup and attribute support
[platform/framework/web/web-ui-fw.git] / libs / patch / jqm-1.1.0 / 0005-JQM-Fix-bug-on-live-firing-custom-events.patch
1 From 3548a6e0000943da605e6cbb00c1ec51ba82cf12 Mon Sep 17 00:00:00 2001
2 From: Youmin Ha <youmin.ha@samsung.com>
3 Date: Tue, 5 Jun 2012 16:47:59 +0900
4 Subject: [PATCH] JQM:Fix bug on live firing custom events
5
6 Signed-off-by: Youmin Ha <youmin.ha@samsung.com>
7 ---
8  .../jquery-mobile-1.1.0/js/jquery.mobile.event.js  |    5 +++++
9  1 file changed, 5 insertions(+)
10
11 diff --git a/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.event.js b/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.event.js
12 index f9d1744..0dc5428 100644
13 --- a/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.event.js
14 +++ b/libs/js/jquery-mobile-1.1.0/js/jquery.mobile.event.js
15 @@ -28,6 +28,11 @@ var supportTouch = $.support.touch,
16  function triggerCustomEvent( obj, eventType, event ) {
17         var originalType = event.type;
18         event.type = eventType;
19 +
20 +       // event.liveFired is already set by basic events, e.g. vclick, which is fired already.
21 +       // To fire this custom event, event.liveFired must be cleared.
22 +       event.liveFired = undefined;
23 +
24         $.event.handle.call( obj, event );
25         event.type = originalType;
26  }
27 -- 
28 1.7.9.5
29