Merge "T104662: Allow nested ref tags only in templates"

This commit is contained in:
jenkins-bot 2016-12-12 15:15:10 +00:00 committed by Gerrit Code Review
commit 0b1277434f

View file

@ -49,13 +49,6 @@ function hasRef(node) {
* Handle ref tokens
*/
Ref.prototype.tokenHandler = function(manager, pipelineOpts, refTok, cb) {
// Nested <ref> tags at the top level are considered errors
// But, inside templates, they are supported
if (!pipelineOpts.inTemplate && pipelineOpts.extTag === "ref") {
cb({ tokens: [refTok.getAttribute("source")] });
return;
}
var refOpts = Object.assign({
name: null,
group: null,