jquery-tmpl icon indicating copy to clipboard operation
jquery-tmpl copied to clipboard

Null Check at Line 429/431: "pntItem.nodes"

Open ghost opened this issue 14 years ago • 2 comments

see also: https://github.com/jquery/jquery-tmpl/issues/76 https://github.com/jquery/jquery-tmpl/pull/78

Hello, i have an example, where the NullCheck would be helpful:

take a look at this example code: http://jsfiddle.net/c6Bwy/1/

If i manually add a null check at line 429, it works!

if (!pntItem.nodes){ pntItem.nodes=[]; }

is this a bug or do i have wrong {{if}}-coding?

Greetings, Sam

ghost avatar Aug 29 '11 12:08 ghost

I think that is a good test case. This may not be fixed until the next version - which will be based on JsRender code: https://github.com/BorisMoore/jsrender. Thanks for the example...

BorisMoore avatar Sep 07 '11 00:09 BorisMoore

Thanks for taking the time to submit this issue. Just wanted to let you know this plugin is no longer being actively developed or maintained by the jQuery team. See README for more info.

rdworth avatar Oct 08 '11 06:10 rdworth