OLD | NEW |
1 <!DOCTYPE html><!-- This page is a placeholder for generated extensions api doc.
Note: | 1 <!DOCTYPE html><!-- This page is a placeholder for generated extensions api doc.
Note: |
2 1) The <head> information in this page is significant, should be uniform | 2 1) The <head> information in this page is significant, should be uniform |
3 across api docs and should be edited only with knowledge of the | 3 across api docs and should be edited only with knowledge of the |
4 templating mechanism. | 4 templating mechanism. |
5 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a | 5 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a |
6 browser, it will be re-generated from the template, json schema and | 6 browser, it will be re-generated from the template, json schema and |
7 authored overview content. | 7 authored overview content. |
8 4) The <body>.innerHTML is also generated by an offline step so that this | 8 4) The <body>.innerHTML is also generated by an offline step so that this |
9 page may easily be indexed by search engines. | 9 page may easily be indexed by search engines. |
10 --><html xmlns="http://www.w3.org/1999/xhtml"><head> | 10 --><html xmlns="http://www.w3.org/1999/xhtml"><head> |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 <code>rule_ids</code> is <code>undefined</code>, all registered rules of this | 323 <code>rule_ids</code> is <code>undefined</code>, all registered rules of this |
324 extension are removed. The <code>callback()</code> function is called when the | 324 extension are removed. The <code>callback()</code> function is called when the |
325 rules were removed. | 325 rules were removed. |
326 </p> | 326 </p> |
327 <h3 id="retrievingrules">Retrieving rules</h3> | 327 <h3 id="retrievingrules">Retrieving rules</h3> |
328 <p> | 328 <p> |
329 To retrieve a list of currently registered rules, call the | 329 To retrieve a list of currently registered rules, call the |
330 <code>getRules()</code> function. It accepts an optional array of rule | 330 <code>getRules()</code> function. It accepts an optional array of rule |
331 identifiers with the same semantics as <code>removeRules</code> and a callback | 331 identifiers with the same semantics as <code>removeRules</code> and a callback |
332 function. | 332 function. |
333 </p><p> | 333 </p> |
334 </p><pre>var rule_ids = ["id1", "id2", ...]; | 334 <pre>var rule_ids = ["id1", "id2", ...]; |
335 function getRules(rule_ids, function callback(details) {...}); | 335 function getRules(rule_ids, function callback(details) {...}); |
336 </pre> | 336 </pre> |
337 <p> | 337 <p> |
338 The <code>details</code> parameter passed to the <code>calback()</code> function | 338 The <code>details</code> parameter passed to the <code>calback()</code> function |
339 refers to an array of rules including filled optional parameters. | 339 refers to an array of rules including filled optional parameters. |
340 </p> | 340 </p> |
341 </div> | 341 </div> |
342 </div> | 342 </div> |
343 <!-- API PAGE --> | 343 <!-- API PAGE --> |
344 <div class="apiPage"> | 344 <div class="apiPage"> |
(...skipping 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1452 _uff=0; | 1452 _uff=0; |
1453 urchinTracker(); | 1453 urchinTracker(); |
1454 } | 1454 } |
1455 catch(e) {/* urchinTracker not available. */} | 1455 catch(e) {/* urchinTracker not available. */} |
1456 </script> | 1456 </script> |
1457 <!-- end analytics --> | 1457 <!-- end analytics --> |
1458 </div> | 1458 </div> |
1459 </div> <!-- /gc-footer --> | 1459 </div> <!-- /gc-footer --> |
1460 </div> <!-- /gc-container --> | 1460 </div> <!-- /gc-container --> |
1461 </body></html> | 1461 </body></html> |
OLD | NEW |