Bug 323436 - ExtensionDataSource.prototype.GetTargets passes EM_NS to stripPrefix. r=bsmedberg

This commit is contained in:
rob_strong%exchangecode.com 2006-02-06 19:12:40 +00:00
Родитель 617a608b2c
Коммит 1ab10e10f5
1 изменённых файлов: 3 добавлений и 4 удалений

Просмотреть файл

@ -6888,7 +6888,7 @@ ExtensionsDataSource.prototype = {
stripPrefix(item.Value, PREFIX_ITEM_URI)) +
stripPrefix(property.Value, PREFIX_NS_EM);
var i = 0;
do {
while (true) {
try {
var value = gPref.getComplexValue(prefName + "." + ++i,
Components.interfaces.nsIPrefLocalizedString);
@ -6907,8 +6907,7 @@ ExtensionsDataSource.prototype = {
break;
}
}
while (1);
return values;
return values.length > 0 ? values : null;
},
/**
@ -6934,7 +6933,7 @@ ExtensionsDataSource.prototype = {
return null;
var ary = null;
var getter = "_rdfGets_" + stripPrefix(source.Value, EM_NS);
var getter = "_rdfGets_" + stripPrefix(property.Value, PREFIX_NS_EM);
if (getter in this)
ary = this[getter](source, property);