minor tweak...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2018-05-24 12:55:47 +03:00
parent 6f49a438db
commit c46b7121d2
2 changed files with 8 additions and 4 deletions

View File

@ -85,4 +85,8 @@ find "$BASE_PATH" -name \*.${EXT} -exec ${ARCH} \;
echo done.
# vim:set nowrap nospell :

View File

@ -1089,15 +1089,15 @@ var KeyboardWithCSSModesPrototype = {
return !pattern
|| pattern == '*'
// jQuery...
|| context.is ?
|| (context.is ?
(context.is(pattern)
|| context.find(pattern).length > 0)
: false
: false)
// Vanilla JS...
|| context.matches ?
|| (context.matches ?
(context.matches(pattern)
|| !!context.querySelector(pattern))
: false
: false)
},
__init__: function(keyboard, context){