Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

Overview

Backport allows you to easily access native API features that have been overriden by backport scripts.

Availability

Backport.js v0.1 and above.

Syntax

// access from anywhere
backport.global.<featureName>
 
// access on backported functions
<functionName>.native

Examples

// assuming we've deleted the deprecated droidFromId() function, but it's still in the JS API
var gameObject = backport.global.droidFromId(id);
 
// assuming we've upgraded orderDroid() but for some reason want the original
orderDroid.native(droid,order);

See also

  • No labels