From ea1049ee90c286f6f73d119b2c16f7da64772fa7 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Wed, 10 Dec 2008 13:47:30 +1100 Subject: [PATCH] use "inline" for the location of inline alternate stylesheets in the completion list - accidentally removed in last related commit --- common/content/completion.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/content/completion.js b/common/content/completion.js index 8bec47ed..4dc7648d 100644 --- a/common/content/completion.js +++ b/common/content/completion.js @@ -1169,10 +1169,10 @@ function Completion() //{{{ let styles = {}; buffer.alternateStyleSheets.forEach(function (style) { - if (style.title in styles) - styles[style.title].push(style.href); - else - styles[style.title] = [style.href]; + if (!(style.title in styles)) + styles[style.title] = []; + + styles[style.title].push(style.href || "inline"); }); context.completions = [[s, styles[s].join(", ")] for (s in styles)];