Skip to content

Commit

Permalink
Libdoc: Avoid copying non-needed items in copy (#1872)
Browse files Browse the repository at this point in the history
  • Loading branch information
pekkaklarck committed Dec 15, 2014
1 parent 368cbfd commit 6303bd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/robot/htmldata/libdoc/libdoc.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ <h1>Opening library documentation failed</h1>
}

function search(pattern, includeName, includeArgs, includeDoc) {
var result = $.extend({}, libdoc);
var matcher = util.Matcher('*' + pattern + '*');
result.keywords = util.filter(result.keywords, function (kw) {
var result = {};
result.keywords = util.filter(libdoc.keywords, function (kw) {
return (includeName && matcher.matches(kw.name) ||
includeArgs && matcher.matches(kw.args) ||
includeDoc && matcher.matches(kw.doc));
Expand Down

0 comments on commit 6303bd9

Please sign in to comment.