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

Looping javascript array should not include zk defined function

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 7.0.5
    • Fix Version/s: 7.0.6
    • Component/s: None
    • Security Level: Jimmy
    • Labels:
      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

            Assignee:
            DevChu DevChu
            Reporter:
            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