mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
350e700d8f
Change-Id: I5ad0955e8272d376f009f89461bed310978b25e4
9 lines
250 B
JavaScript
9 lines
250 B
JavaScript
/**
|
|
* Progressive enhancement for JS core- define things that are scheduled to
|
|
* appear in the standard anyway.
|
|
*/
|
|
|
|
if(!Array.prototype.last) Object.defineProperty(Array.prototype, 'last', {
|
|
value: function() { return this[this.length - 1] }
|
|
});
|