Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion lib/robotremote.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,14 @@ function Server(libraries, options, listeningCallback) {
module.exports.Server = Server;

Server.prototype.getKeywordDocumentation = function (name, response) {
response(null, this.keywords[name].doc);
/*
Checking for existence of keyword because Robot will send some
meta keywords, such as __init__ and __intro__, for the purposes
of generating documentation. Return '' if the client has not supplied
definitions for these meta keywords.
*/
var keyword = this.keywords[name];
response(null, !!keyword ? keyword.doc : '');
};

Server.prototype.getKeywordTags = function (name, response) {
Expand Down