parentNode.tagName.toLowerCase undefined

547 views Asked by At

This fiddle generates the following error using jsviews:

parentNode.tagName.toLowerCase is undefined

This is because tagName is undefined.

The fiddle represents the simplest possible case (using jsviews but not actually binding anything). My actual application contains more complex templates, but they are all generating similar errors.

Rendering the same template with render instead of link works fine.

I doubt this is a bug - what am I missing in the implementation?

1

There are 1 answers

2
BorisMoore On BEST ANSWER

Updated fiddle: http://jsfiddle.net/ejJZc/13/

See here for how to use the JsViews link() method - and how it relates to the JsRender render() method:

http://www.jsviews.com/#jsvplaying