Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

bug in view.mustache when passing partials in options

$
0
0
I found what I believe is a bug in canjs.com-2.1.1/amd/can/view/

The following if statement on lines 1694--1696:


                if (scope.attr('partial')) {
                    partial = scope.attr('partial');
                }

the 'partial' argument should be unquoted. i.e. a variable rather than a literal.

This has prevented the ability to pass partials in options, (unless the key is named 'partial')


Viewing all articles
Browse latest Browse all 3491

Latest Images

Trending Articles



Latest Images