1
0
mirror of synced 2024-11-22 21:16:10 +03:00

append label only when formatted is not undefined

This commit is contained in:
Richard Huang 2013-09-19 11:19:10 +08:00
parent e78cf7759e
commit 701e84ea21

View File

@ -883,9 +883,9 @@ the specific language governing permissions and limitations under the Apache Lic
formatted=opts.formatResult(result, label, query, self.opts.escapeMarkup);
if (formatted!==undefined) {
label.html(formatted);
node.append(label);
}
node.append(label);
if (compound) {