1 From b8ddc771114f47169e6420e06715c21ab39d6d8c Mon Sep 17 00:00:00 2001
2 From: Youmin Ha <youmin.ha@samsung.com>
3 Date: Mon, 26 Nov 2012 22:09:23 +0900
4 Subject: [PATCH] JQM: Fix bug on live firing custom events
6 Signed-off-by: Youmin Ha <youmin.ha@samsung.com>
8 libs/js/jquery-mobile-1.2.0/js/events/touch.js | 4 ++++
9 1 file changed, 4 insertions(+)
11 diff --git a/libs/js/jquery-mobile-1.2.0/js/events/touch.js b/libs/js/jquery-mobile-1.2.0/js/events/touch.js
12 index 2b18a7e..6083faf 100644
13 --- a/libs/js/jquery-mobile-1.2.0/js/events/touch.js
14 +++ b/libs/js/jquery-mobile-1.2.0/js/events/touch.js
15 @@ -32,6 +32,10 @@ define( [ "jquery", "../jquery.mobile.vmouse", "../jquery.mobile.support.touch"
16 function triggerCustomEvent( obj, eventType, event ) {
17 var originalType = event.type;
18 event.type = eventType;
19 + // event.liveFired is already set by basic events, e.g. vclick, which is fired already.
20 + // To fire this custom event, event.liveFired must be cleared.
21 + event.liveFired = undefined;
23 $.event.handle.call( obj, event );
24 event.type = originalType;