API Documentation for: 1.0.0
Show:

DataUtils Class

Defined in: DataUtils:36
Module: PreloadJS

A few data utilities for formatting different data types.

Item Index

Methods

Methods

parseJSON

(
  • value
)
Object

Defined in parseJSON:78

Parse a string into an Object.

Parameters:

  • value String

    The loaded JSON string

Returns:

Object:

A JavaScript object.

parseXML

(
  • text
)
XML static

Defined in parseXML:43

Parse XML using the DOM. This is required when preloading XML or SVG.

Parameters:

  • text String

    The raw text or XML that is loaded by XHR.

Returns:

XML:

An XML document