utils.agent

namespace agent

a collection of utility functons to ease porting between different user agents.

Summary


Public Methods


prefixed agent.js:14
prefixed(name: string, obj: object) → {string}

Get a vendor-prefixed property

Parameters:
Name Type Attributes Default Description
name string

Property name

obj object

<optional>

globalThis

Object or element reference to access

Returns:
Type Description
string

Value of property

setPrefixed agent.js:39
setPrefixed(name: string, value: string, obj: object) → {boolean}

Set a vendor-prefixed property

Parameters:
Name Type Attributes Default Description
name string

Property name

value string

Property value

obj object

<optional>

globalThis

Object or element reference to access

Returns:
Type Description
boolean

true if one of the vendor-prefixed property was found


Powered by webdoc!