http://www.mediawiki.org/wiki/Special:Code/MediaWiki/82796
Revision: 82796
Author: catrope
Date: 2011-02-25 15:15:35 +0000 (Fri, 25 Feb 2011)
Log Message:
-----------
Narayam: Fix a missing semicolon and a weak comparison in r82793 , caught by
JSHint
Modified Paths:
--------------
trunk/extensions/Narayam/ext.narayam.core.js
Modified: trunk/extensions/Narayam/ext.narayam.core.js
===================================================================
--- trunk/extensions/Narayam/ext.narayam.core.js 2011-02-25 15:11:24 UTC
(rev 82795)
+++ trunk/extensions/Narayam/ext.narayam.core.js 2011-02-25 15:15:35 UTC
(rev 82796)
@@ -73,7 +73,7 @@
* @return Substring of str, at most n characters long, immediately
preceding pos
*/
function lastNChars( str, pos, n ) {
- if ( n == 0 ) {
+ if ( n === 0 ) {
return '';
}
if ( pos <= n ) {
@@ -104,7 +104,7 @@
return e.altKey == shortcutKey.altKey &&
e.ctrlKey == shortcutKey.ctrlKey &&
e.shiftKey == shortcutKey.shiftKey &&
- String.fromCharCode( e.which ).toLowerCase() ==
shortcutKey.key.toLowerCase()
+ String.fromCharCode( e.which ).toLowerCase() ==
shortcutKey.key.toLowerCase();
}
function shortcutText() {
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs