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

Line 47: Line 47:




==== Page Mods Method: <i>add<i> ====
==== 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 61: Line 60:


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


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


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


<pre>
<pre>
1,273

edits