Index: trunk/phase3/resources/mediawiki/mediawiki.util.js |
— | — | @@ -109,17 +109,6 @@ |
110 | 110 | /* Main body */ |
111 | 111 | |
112 | 112 | /** |
113 | | - * Wether a value is in an array. Using jQuery's inArray cross-browser utility, |
114 | | - * (for browsers without Array indexOf support). |
115 | | - * @param val {Mixed} Needle |
116 | | - * @param arr {Array} Haystack |
117 | | - * @return Boolean |
118 | | - */ |
119 | | - 'inArray' : function( val, arr ) { |
120 | | - return $.inArray( val, arr ) !== -1; |
121 | | - }, |
122 | | - |
123 | | - /** |
124 | 113 | * Encode the string like PHP's rawurlencode |
125 | 114 | * |
126 | 115 | * @param str string String to be encoded |
Index: trunk/phase3/resources/mediawiki.page/mediawiki.page.ajaxCategories.js |
— | — | @@ -44,7 +44,7 @@ |
45 | 45 | |
46 | 46 | var _saveAllButton; |
47 | 47 | var _cancelAllButton; |
48 | | - var _multiEdit = mw.util.inArray( mw.config.get( 'wgUserGroups' ), 'user' ); |
| 48 | + var _multiEdit = $.inArray( 'user', mw.config.get( 'wgUserGroups' ) ) !== -1; |
49 | 49 | |
50 | 50 | /** |
51 | 51 | * Helper function for $.fn.suggestion |