diff options
author | portix <none@none> | 2012-08-21 14:57:34 +0200 |
---|---|---|
committer | portix <none@none> | 2012-08-21 14:57:34 +0200 |
commit | cf3566fbe3df4583b54409c188362b7dd4b40c9b (patch) | |
tree | a607ba8c529dcb2d6dbc8d63a7996b60673ffcec /doc/dwb.1 | |
parent | 1b71e3d1bf57a002fb9faaa5b0d964d412e0b7e8 (diff) | |
download | dwb-cf3566fbe3df4583b54409c188362b7dd4b40c9b.zip |
Implementing Array.fastIndexOf; adding dwb-js-manpage
Diffstat (limited to 'doc/dwb.1')
-rw-r--r-- | doc/dwb.1 | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -2,12 +2,12 @@ .\" Title: dwb .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.77.1 <http://docbook.sf.net/> -.\" Date: 07/28/2012 +.\" Date: 08/21/2012 .\" Manual: \ \& .\" Source: \ \& .\" Language: English .\" -.TH "DWB" "1" "07/28/2012" "\ \&" "\ \&" +.TH "DWB" "1" "08/21/2012" "\ \&" "\ \&" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- @@ -3637,8 +3637,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)) { @@ -3646,6 +3645,7 @@ signals\&.connect("resource", function(wv, frame, request) { return true; } } + return false; }); .fi .if n \{\ |