Permalink
Browse files

fix a mangled or sign in previous 'focus' related commit

  • Loading branch information...
1 parent 010bc89 commit 95d947b2e5399ccc2ca04aaa8eb4325a95959281 @dperini committed Nov 29, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/modules/nwmatcher-pseudos.js
  2. +1 −1 src/nwmatcher.js
@@ -249,7 +249,7 @@ NW.Dom.registerSelector(
case 'focus':
source = 'hasFocus' in doc ?
- 'if(e===d.activeElement&&d.hasFocus()&&(e.type||e.href|!isNaN(e.tabIndex))){' + source + '}' :
+ 'if(e===d.activeElement&&d.hasFocus()&&(e.type||e.href||!isNaN(e.tabIndex))){' + source + '}' :
'if(e===d.activeElement&&(e.type||e.href)){' + source + '}';
break;
View
@@ -1201,7 +1201,7 @@
case 'focus':
if (XML_DOCUMENT) break;
source = NATIVE_FOCUS ?
- 'if(e===d.activeElement&&d.hasFocus()&&(e.type||e.href|!isNaN(e.tabIndex))){' + source + '}' :
+ 'if(e===d.activeElement&&d.hasFocus()&&(e.type||e.href||!isNaN(e.tabIndex))){' + source + '}' :
'if(e===d.activeElement&&(e.type||e.href)){' + source + '}';
break;

0 comments on commit 95d947b

Please sign in to comment.