Module: alfresco/core/shims

alfresco/core/shims

This shims class adds extra functionality to the core browser objects. It's used for things like adding ES5 functionality where it makes sense to do so rather than using Dojo to provide the cross-browser functionality.
Author:
  • Martin Doyle
License:
Source:

Methods

<protected> _addArrayIsArray()

Add an isArray() function to the global Array object. From https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray#Polyfill
Since:
  • 1.0.56
Source:

<protected> _addArrayReduce()

Add a reduce() function to the global Array object, because dojo/_base/array does not support it. From https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/Reduce#Polyfill
Since:
  • 1.0.52
Source:

<protected> _addDateNow()

Add a now() function to the global Date object. From https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now
Source:

<protected> _addES6Promise()

Shim for <=IE9 to add ES6 Promises. Uses code from https://github.com/stefanpenner/es6-promise
Since:
  • 1.0.100
Source:

<protected> _addObjectKeys()

Add a keys() function to the global Object object. From https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys
Source:

<protected> _addRequestAnimationFrame()

Shim for <=IE9 to add requestAnimationFrame to the global object. Uses code from http://www.paulirish.com/2011/requestanimationframe-for-smart-animating/
Since:
  • 1.0.57
Source:

<protected> _addTextContent()

Allow setting of textContent on elements in IE8 From https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent
Since:
  • 1.0.49
Source:

apply()

Apply the current shims.
Source: