Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-2825

Looping javascript array should not include zk defined function

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Normal
    • 7.0.6
    • 7.0.5
    • None
    • Security Level: Jimmy
    • None

    Description

      Reproducible sample:

      <zk>
      	<script type="text/javascript" defer="true"><![CDATA[
      		var arr = ['0', '1', '2'], content = '';
      		for (var i in arr) {
      			content += i + '\n';
      		}
      		zk.Widget.$('$lbl').setValue(content);
      	]]></script>
      	Should only see 0, 1, 2 below:
      	<separator />
      	<label id="lbl" multiline="true"></label>
      </zk>
      

      Attachments

        Activity

          People

            DevChu DevChu
            vincentjian vincentjian
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day
                1d