[Pkg-javascript-commits] [dojo] 03/07: fixes #17153: don't call preventDefault for AUDIO or VIDEO elements as this prevents playing the media file on some devices (commit to 1.9 branch). Thanks Sebastien Pereira (IBM, CCLA). !strict

David Prévot taffit at moszumanska.debian.org
Thu Aug 21 17:39:50 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag 1.9.1
in repository dojo.

commit 927121c19398dd9abfb0ee771e2f280fa92bd0c1
Author: Eric Durocher <edurocher0 at gmail.com>
Date:   Thu May 16 13:31:31 2013 +0000

    fixes #17153: don't call preventDefault for AUDIO or VIDEO elements as this prevents playing the media file on some devices (commit to 1.9 branch). Thanks Sebastien Pereira (IBM, CCLA). !strict
    
    git-svn-id: http://svn.dojotoolkit.org/src/branches/1.9/dojo@31441 560b804f-0ae3-0310-86f3-f6aa0a117693
---
 touch.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/touch.js b/touch.js
index b282220..ac30fe5 100644
--- a/touch.js
+++ b/touch.js
@@ -115,7 +115,7 @@ function(dojo, aspect, dom, domClass, lang, on, has, mouse, domReady, win){
 							e.stopPropagation();
 							e.stopImmediatePropagation && e.stopImmediatePropagation();
 							if(type == "click" && (e.target.tagName != "INPUT" || e.target.type == "radio" || e.target.type == "checkbox")
-								&& e.target.tagName != "TEXTAREA"){
+								&& e.target.tagName != "TEXTAREA" && e.target.tagName != "AUDIO" && e.target.tagName != "VIDEO"){
 								 // preventDefault() breaks textual <input>s on android, keyboard doesn't popup,
 								 // but it is still needed for checkboxes and radio buttons, otherwise in some cases
 								 // the checked state becomes inconsistent with the widget's state

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/dojo.git



More information about the Pkg-javascript-commits mailing list