Template syntax causes simulator woes and data loss

Thread is closed for posting
2 posts, 0 answers
  1. Kelly
    Kelly avatar
    73 posts
    Member since:
    Apr 2011

    Posted 08 Jan 2014 Link to this post


    I defined a template using a conditional expression, like this:

    1.<script type="text/x-kendo-template" id="myTemplate">
    2.    # if (canDo) { #
    3.    <div data-role="touch" data-bind="events: { tap: dothis }">
    4.    # } else { #
    5.    <div data-role="touch" data-bind="events: { tap: dothat }">
    6.    # } #

    In Graphite, the div on line 5 produces an unmatched div error. No biggee, the code runs correctly.  However, after adding this code and saving, the simulator is no longer updated, and code changes made in the window are no longer saved.  If I make a change, then use Save, the window appears to be saved, and the Save menu option is dimmed, but the simulator is not updated. To get back to normal state, I have to close Graphite completely and reopen.  Changes made before the save are gone.  Thereafter, I am able to make changes and save without problems, even though the Code Analysis pane continues to show the "Expected </div>" error.

    Thank you,

  2. Kaloyan
    Kaloyan avatar
    878 posts

    Posted 13 Jan 2014 Link to this post

    Hi Kelly,

    I tried reproducing this on my side, unfortunately without success.

    Is it possible for you to export a sample project and send it over for further investigation?

    Thank you for the collaboration in advance.

    You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
Back to Top