Documentation Center

GUI API delta compared to SDL Web 8

The use of decorators (custom enhancements to JavaScript objects such as Array and Error) has been deprecated as of SDL Web 8.5.

For example, previously, you could call the removeAt method on an instance of an array, as this method call does for an array called planets:
planets.removeAt(index);
But now, this type of method call is deprecated in favor of this way of achieving the same result:
Tridion.Utils.Array.removeAt(planets, index);
Decorators have in the past been created and now been deprecated for the following objects:
  • Array
  • Error
  • Function
  • Object
  • RegExp
  • String
Specifically, the following methods are now deprecated:
  • Array.areEqual
  • Array.contains
  • Array.clone
  • Array.distinct
  • Array.each
  • Array.fromArguments
  • Array.includes
  • Array.insert
  • Array.intersect
  • Array.move
  • Array.normalize
  • Array.removeAt
  • Error.addProperty
  • Error.create
  • Error.toString
  • Function.EMPTY
  • Function.getCallStack
  • Function.getDelegate
  • Function.getName
  • Function.timedProcessItems
  • Object.clone
  • Object.deserialize
  • Object.find
  • Object.getNextId
  • Object.getProperties
  • Object.getUniqueId
  • Object.hasProperties
  • Object.serialize
  • RegExp.escape
  • String.concat
  • String.format
  • String.isNullOrEmpty
  • String.padLeft
  • String.padRight
  • String.shrinkTo
  • String.trim