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

Line 47: Line 47:




==== Page Mods Method: add ====
==== Page Mods Method: <i>add<i> ====


<b>Arguments:</b>
<b>Arguments:</b>
----


#type - (<i>string</i>) The type of modifier being added. Can be 'matches', 'includes', 'styles', or 'script'. NOTE: If the only argument is an object, Page Mods assumes multiple modifiers will be passed in.
#type - (<i>string</i>) The type of modifier being added. Can be 'matches', 'includes', 'styles', or 'script'. NOTE: If the only argument is an object, Page Mods assumes multiple modifiers will be passed in.
Line 60: Line 61:


<b>Returns:</b>
<b>Returns:</b>
----


The attached Page Mods instance
The attached Page Mods instance
Line 65: Line 67:


<b>Examples:</b>
<b>Examples:</b>
----


<pre>
<pre>
1,273

edits