| [ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Summary view] [Print] [Text view]
1 /*! 2 * Skip function for es5-shim module. 3 * 4 * Test for strict mode as a proxy for full ES5 function support (but not syntax) 5 * Per http://kangax.github.io/compat-table/es5/ this is a reasonable shortcut 6 * that still allows this to be as short as possible (there are no browsers we 7 * support that have strict mode, but lack other features). 8 * 9 * Do explicitly test for Function#bind because of PhantomJS (which implements 10 * strict mode, but lacks Function#bind). 11 * 12 * IE9 supports all features except strict mode, so loading es5-shim should be close to 13 * a no-op but does increase page payload). 14 */ 15 return ( function () { 16 'use strict'; 17 return !this && !!Function.prototype.bind; 18 }() );
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |