Labs/Jetpack/Reboot/JEP/107: Difference between revisions

Line 165: Line 165:
=== Common Actions ===
=== Common Actions ===


The API, if done in this fashion, give the developer the ability to dramatically simplify simple actions such as:
The API, if done in this fashion, give the developer the ability to dramatically simplify application actions such as:
* Creating an instance of Page Mods that adds script or styles to a set of matched urls
* Creating an instance of Page Mods that adds script or styles to a set of matched urls
* Further extending and existing instance of Page Mods with further styles and script
* Further extending and existing instance of Page Mods with additional styles and script
* Toggling on and off specific styles or script within a Page Mods instance
* Toggling on and off specific styles or script within a Page Mods instance
* Adding new matches to a Page Mods instance, which in turn instantly applies active styles and script within that instance to the newly added matches.
* Adding new matches to a Page Mods instance, which in turn instantly applies active styles and script within that instance to the newly added matches.
* Multiple instances of Page Mods, which enables a whole cadre of functionality that the object-bound 'singleton' implementation neglects.
* Multiple instances of Page Mods, which enables a whole cadre of functionality that the object-bound 'singleton' implementation neglects.
1,273

edits