1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-04 00:35:45 +01:00

Fix CSS property completion issue.

--HG--
branch : key-processing
This commit is contained in:
Kris Maglione
2011-01-27 22:53:24 -05:00
parent 11cbc5177c
commit a0aebadc87

View File

@@ -331,9 +331,12 @@ var Styles = Module("Styles", {
propertyIter: function (str, always) {
let i = 0;
for (let match in this.propertyPattern.iterate(str))
if (always && !i++ || match[0] && match.value)
for (let match in this.propertyPattern.iterate(str)) {
if (match.value || always && match.name || match.wholeMatch === match.preSpace && always && !i++)
yield match;
if (!/;/.test(match.postSpace))
break;
}
},
propertyPattern: util.regexp(<![CDATA[