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

Line 54: Line 54:
     return window.location;
     return window.location;
});
});
</pre>
==== Background Page Method: <i>clear</i> ====
<b>Arguments:</b>
#<b>type</b> - (<i>string</i>) can be 'script', 'elements', or 'all';
<b>Returns:</b>
The Background Page Global object: <i>$dom</i>
<b>Examples:</b>
<pre class="brush:js;">
$dom.clear('script');
</pre>
==== Background Page Method: <i>reset</i> ====
<b>Arguments:</b>
No arguments are used in accordance with this method
<b>Returns:</b>
The Background Page Global object: <i>$dom</i>
<b>Examples:</b>
<pre class="brush:js;">
$dom.reset();
</pre>
</pre>
1,273

edits