backport.js
Overview
This is the main backport library that all the other backports require...Backport.js allows developers to to:
- Add missing JS API functions and constants
- Override existing functions to add missing functionality
- Remove deprecated functions, constants and globals
- List all available and removed JS API features
- Determine what alterations have been made by backport
Learn more: Why should I use backports? | How does Backport work?
Availability
Requires Util.js to be included first.
Warzone 3.1 Beta 1 and above.
Documentation
- Overriding existing functions — Backport allows you to overwrite existing functions to fix bugs and increase/extend functionality.
- Listing API features — Backport allows you get a list of the names of all JS API features, including those added by backport scripts.
- Check status of an API feature — Backport allows you to check what alterations, if any, have been made to a JS API feature so that your script can act accordingly.
- Adding missing constants — Backport allows you to quickly add missing constants to the JS API.
- Adding missing functions — Backport allows you to implement missing functions by providing your own functions.
- Removing deprecated API features — Backport allows you to remove deprecated JS API features.
- Accessing native API features — Backport allows you to easily access native API features that have been overriden by backport scripts.
- Manipulating event handlers — Backport.js can be used in conjunction with util.js to manipulate the parameters of events triggered by the JS API.
Script
See also
- Backport Scripts – a load of ready made backports to solve common problems