From 510de4ef938534a9fb37ee992d1ff7b4fb858e27 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Mon, 1 Sep 2008 01:15:03 +0000 Subject: [PATCH] minor refactoring of pagestyle#command --- content/buffer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/buffer.js b/content/buffer.js index 03ea107a..bb6f8bfb 100644 --- a/content/buffer.js +++ b/content/buffer.js @@ -471,7 +471,7 @@ liberator.Buffer = function () //{{{ { var titles = liberator.buffer.alternateStyleSheets.map(function (stylesheet) { return stylesheet.title; }); - if (args && !titles.some(function (title) { return title == args; })) + if (args && titles.indexOf(args) == -1) { liberator.echoerr("E475: Invalid argument: " + args); return;