Skip to content

Commit

Permalink
"throw" tag is the same implementation with "return" tag
Browse files Browse the repository at this point in the history
  • Loading branch information
okuryu committed Jan 14, 2015
1 parent 6512ba8 commit 919dea0
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions lib/docparser.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,27 +402,7 @@ YUI.add('docparser', function (Y) {
},

// @throws {type} description
'throws': function (tagname, value, target) {
var desc = implodeString(trim(value)),
type,
match = REGEX_TYPE.exec(desc),
result;

if (match) {
type = fixType(trim(match[2]));
desc = trim(match[1] + match[3]);
}

result = {
description: Y.unindent(explodeString(desc))
};

if (type) {
result.type = type;
}

target[tagname] = result;
},
'throws': 'return',

'injects': 'return',

Expand Down

0 comments on commit 919dea0

Please sign in to comment.