Skip to content

Commit

Permalink
fixed 2.1 mustache compile
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolay Nadorichev committed May 21, 2015
1 parent 210ad6d commit 0c4b47b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/compile.js
Expand Up @@ -54,9 +54,11 @@ module.exports = function(options, callback) {
}
}

var canViewTagsCallbacks = can.view.Scanner.tags || can.view.callbacks && can.view.callbacks._tags;

if (options.tags && options.tags.length) {
for (var j = 0; j < options.tags.length; j++) {
can.view.Scanner.tags[options.tags[j]] = noop;
canViewTagsCallbacks[options.tags[j]] = noop;
}
}

Expand Down

0 comments on commit 0c4b47b

Please sign in to comment.