Add es5-shim library v3.4.0
authorJames D. Forrester <jforrester@wikimedia.org>
Thu, 12 Jun 2014 23:19:46 +0000 (16:19 -0700)
committerKrinkle <krinklemail@gmail.com>
Wed, 25 Jun 2014 22:10:51 +0000 (22:10 +0000)
commitfff9a814f2327eb8d0233e727e6aea2024e688d3
tree7c7e3123291039dee41f9b44817252cb7ed740a3
parentcde08292271efc0d1b0fe66ed2aff232d349824c
Add es5-shim library v3.4.0

With skip function to bypass loading in modern browsers.

Add dependency on es5-shim to OOjs and OOjs UI, and json2 to the former.

The ES5 skip function simply asserts the 'use strict' feature, which
means that all MSIE9 clients will recieve the library, which should
mostly be a no-op but will increase the load.

* Source code
  https://github.com/es-shims/es5-shim/blob/v3.4.0/es5-shim.js

As OOjs UI isn't yet tested against non-ES5 browsers using this shim,
leaving the note about likely breakage for that one.

Change-Id: I2556b39d6040d99693f6b9d469b92951ffb2e7b2
resources/Resources.php
resources/lib/es5-shim/es5-shim.js [new file with mode: 0644]
resources/src/es5-skip.js [new file with mode: 0644]