Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not rendering HeaderView template. #3

Open
khein opened this issue Jul 18, 2012 · 1 comment
Open

Not rendering HeaderView template. #3

khein opened this issue Jul 18, 2012 · 1 comment

Comments

@khein
Copy link

khein commented Jul 18, 2012

receiving TypeError: 'undefined' is not a function (evaluating 'a.replace(O,function(a){return""+n[a]})') when loading index.html from the underscore.js library.

The backbone-cellar bootstrap website doesn't correctly load the HeaderView template on Safari 5.1.7 & Mac OS X 10.7.4. Didn't work with Firefox or Chrome either, so may just be an OS X issue.

Changed lines 10-12 in js.utils to:

            deferreds.push($.get('tpl/' + view + '.html', function(data) {
                window[view].prototype.template = _.template(data);
            }, "text"));

with the ', "text" being the addition.

This forced the jQuery $.get to recognize the HeaverView.html to be text instead of an [object Document] upon load.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@khein and others