summaryrefslogtreecommitdiff
path: root/doc/dwb.1.txt
diff options
context:
space:
mode:
authorportix <none@none>2012-08-21 14:57:34 +0200
committerportix <none@none>2012-08-21 14:57:34 +0200
commitcf3566fbe3df4583b54409c188362b7dd4b40c9b (patch)
treea607ba8c529dcb2d6dbc8d63a7996b60673ffcec /doc/dwb.1.txt
parent1b71e3d1bf57a002fb9faaa5b0d964d412e0b7e8 (diff)
downloaddwb-cf3566fbe3df4583b54409c188362b7dd4b40c9b.zip
Implementing Array.fastIndexOf; adding dwb-js-manpage
Diffstat (limited to 'doc/dwb.1.txt')
-rw-r--r--doc/dwb.1.txt9
1 files changed, 7 insertions, 2 deletions
diff --git a/doc/dwb.1.txt b/doc/dwb.1.txt
index 1ace0ef1..e1b151db 100644
--- a/doc/dwb.1.txt
+++ b/doc/dwb.1.txt
@@ -1595,8 +1595,7 @@ Block requests from specific sites:
var block = [ new RegExp("https://example.org.*"), new RegExp("https://example.co.uk.*") ];
signals.connect("resource", function(wv, frame, request) {
- var i, r;
- for (i=0; i<block.length; i++)
+ for (var i=0, l=block.length; i<l; ++i)
{
if (block[i].test(request.uri))
{
@@ -1604,6 +1603,7 @@ signals.connect("resource", function(wv, frame, request) {
return true;
}
}
+ return false;
});
------
@@ -1615,3 +1615,8 @@ bitbucket: http://bitbucket.org/portix/dwb
homepage: http://portix.bitbucket.org/dwb/
+
+SEE ALSO
+--------
+*dwb-js*(7)
+