wire and ie8/templates doesn't work :(

22 views
Skip to first unread message

Gehan Gonsalkorale

unread,
Apr 24, 2013, 4:58:55 AM4/24/13
to cuj...@googlegroups.com
Guys,

I just tried wire with ie8 and it doesn't seem to work for me with templates! IE9 is fine but IE8 is sad. The todomvc app also fails in ie8 as you need to all the poly shims.

Wirejs itself runs, I think it might just be the template plugin as it seems to thing there are more nodes in the template than there really are.

I load the spec like this:

    curl(['wire!app/spec']).then(function(){
        console.log 'loaded';
    }, function(obj) {
        console.log 'fail'
        console.log obj
              });
 

Which fails with this error on the console

Error: render: only one element per template is supported.

My spec is this

define

    appView:
        render:
            module: 'text!app/main/views/layout.html'

        insert:
            at:
                $ref: 'dom.first!body'

    plugins: [
        { module: 'wire/dom/render' }
        { module: 'wire/dom' }
    ]

My template is just this!

<p>HELLO</p>

I g


Gehan

Gehan Gonsalkorale

unread,
Apr 24, 2013, 5:09:52 AM4/24/13
to cuj...@googlegroups.com
I'm looking myself now FYI, just posted in case you already knew about this :D

John Hann

unread,
Apr 24, 2013, 9:09:45 AM4/24/13
to cuj...@googlegroups.com
Thanks for posting a fix to github, Gehan!

Reply all
Reply to author
Forward
0 new messages