| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Change-Id: I34bb289e941751ae4722c708511326a2a5431bfc
|
|
|
|
| |
Change-Id: I537f5948e9d8e4b0f420705df806307f5535d681
|
|
|
|
|
|
|
| |
Also remove temporary explicit dependency on eslint-plugin-vue
introduced in Ibd616750f046a.
Change-Id: Ic6330fcb116e99d5827b4877e094e3073e2b7b72
|
|
|
|
| |
Change-Id: Id34649641263f0f29f7c594ec71bd4657fa4f1c4
|
|
|
|
| |
Change-Id: Ic07010e5219b04b3b2b156468272d8df5dce233b
|
|
|
|
| |
Change-Id: Ifb1d0cb9b5ca1cfc53f08bea4ba952cc71035ccd
|
|
|
|
|
|
| |
mw.widgets.CategoryMultiselectWidget
Change-Id: I32c4298e3d58e4b2d34541912a98c7d32fef77ed
|
|
|
|
|
|
| |
Also a few undoing of vars-on-top as the mood took me.
Change-Id: Idb16240afb9ccd9bd2923dd5eecc885d7fbddcfd
|
|
|
|
|
|
|
|
| |
Uses class descriptions for classes and descriptions
for constructors.
Bug: T357164
Change-Id: Ic4eb3f2b6d40138ce1e9d9292eb7d1d7b10aa8b0
|
|
|
|
|
|
|
|
|
| |
- Fixes links to work with JSDoc syntax
- Removes links to the already-selected symbol
- Removes links with no apparent target
Bug: T360241
Change-Id: Iff860ae4a1f4a49d3b807a6dd1f59c64d2073e02
|
|
|
|
|
| |
Bug: T357811
Change-Id: I2f7d9d79ffcb7aafbec4d9fbb0e4e2fe78d515bb
|
|
|
|
|
| |
Bug: T357169
Change-Id: I2675cd98fc397fa0cd2c3e1f222d22527c3d99c0
|
|
|
|
|
|
|
|
| |
- Remove unnecessary indentation
- Add @example tags where missing
Bug: T352233
Change-Id: Idc2d538f34851c17c713146cd5eb210ad720b25a
|
|
|
|
| |
Change-Id: I9d94afe3d5f65f0f4f70484cce482d1afacb9ddd
|
|
|
|
|
| |
Bug: T120821
Change-Id: Ia26c1242c69cba169d3ef600fa435b7280e1fc8a
|
|
|
|
|
| |
Bug: T262466
Change-Id: Ia17d4631bac516c795be173e467cfa61b1c6c254
|
|
|
|
| |
Change-Id: Ie8aa67bdbd34afe0930cc6b9adfd755791607031
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Follows-up Id6d13bbea6:
- '$': mw.loader.implement does this already.
- 'mw': Use the canonical name directly.
This replaces the following patterns:
File closures (common):
- `( function ( $, mw ) {` => `( function () {`
- `( function ( $ ) {` => `( function () {`
- `( function ( mw ) {` => `( function () {`
- `( function ( mw, $ ) {` => `( function () {`
File closures (rare):
- `( function ( mw, $, OO ) {` => `( function () {`
- `( function ( mw, OO, $ ) {` => `( function () {`
- `( function ( mw, document ) {` => `( function () {`
Combined dom-ready and file closure (rare):
- `jQuery( function ( $ ) {` => `$( function () {
- `jQuery( function () {` => `$( function () {
Remaining references in files without a closure, as found by
the new ESLint setting (rare):
- `jQuery` => `$`
- `mediaWiki` => `mw`
Change-Id: I7cf2426cde597259e8c6f3f6f615a1a81a0ca82b
|
|
|
|
|
|
|
|
|
|
|
| |
Even though Array.prototype.forEach only works on arrays, and
$.each is more generic, I think it makes sense to begin discouraging
the usage of $.each now. This can be overriden by ignore lines or
by Array.prototype.forEach compatible lines. This doesn't seem too
much of an ask of engineers and helps future migrations
Bug: T200877
Change-Id: I339cff311a830699c8e32f07cec338a39870c53f
|
|
|
|
|
|
|
|
|
| |
…also rename mw.widgets.CategoryCapsuleItemWidget to
mw.widgets.CategoryTagItemWidget.
Bug: T183299
Depends-on: Ia0732faff2d98f1ca07da5fbe1f2abc27f71a617
Change-Id: I2146d8ce6505dae55750b4b12bd806b83796c1c5
|
|
|
|
|
|
|
| |
Follows-up on I7c9e0089ba6b77f4bc73e14b989630487f6f3174.
Bug: T161285
Change-Id: I1fb150914cefddd12b5ecb8f2d69f6828781cb20
|
|
|
|
| |
Change-Id: Ib4b452f1843ec250c8c1fcc2a738d80726b6135d
|
|\ |
|
| |
| |
| |
| |
| | |
Bug: T184776
Change-Id: I1ba75e779e9c4f0ce5957d752a02da27044b9d07
|
|/
|
|
|
|
|
|
|
| |
Replace:
* $.trim( str ) by str.trim()
Ensure that str is a string before calling str.trim().
Change-Id: I48f08fdac1e7d802813563c4691e9bbaf2c78336
|
|
|
|
|
|
| |
Change-Id: I3cea1dacc1452b05e7e7423e47dcb2ffdf70c1ce
Depends-on: Ia2110f71d1642f61451cb8acc7e8a930d0feb31f
Bug: T76630
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
jQuery.isArray gets deprecated in jQuery 3.2.0. [1]
Array.isArray is supported since the following browser versions: [2]
* Chrome 5
* Firefox (Gecko) 4.0 (2.0)
* Internet Explorer 9
* Opera 10.5
* Safari 5
Performed using:
find resources/src tests -type f -name \*.js -exec sed -i -e 's/\$\.isArray/Array.isArray/g' {} \;
[1] https://blog.jquery.com/2017/03/16/jquery-3-2-0-is-out/
[2] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray#Browser_compatibility
Bug: T160953
Change-Id: I1f5fe19d247ec420810e1c4a6db779425b69de23
|
|
For consistency.
Bug: T161285
Change-Id: I7c9e0089ba6b77f4bc73e14b989630487f6f3174
|