Results 1 to 5 of 5

Thread: .join("") doesn't work in 2.1.0

  1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    13
    Vote Rating
    0
      0  

    Default .join("") doesn't work in 2.1.0

    After changing from 2.0.1 to 2.1.0, join("") no longer works in my json files:

    Code:
            "lyrics": [
                "???? ?????<br />", 
                "??????? ???????<br />"
            ].join("")
    I must remove .join("") for it to work but then it will show in the comma in every sentence.

    Any ideas? Thanks

  2. #2
    Sencha User
    Join Date
    Sep 2012
    Posts
    17
    Vote Rating
    0
      0  

    Default

    I think it is supposed to be html rather than "lyrics". So change to it html without the quotes and make sure it is a property in config.

  3. #3
    Sencha User
    Join Date
    Sep 2012
    Posts
    13
    Vote Rating
    0
      0  

    Default

    The lyrics is part of a json file which has multiple lines. It's not the html in a component. It was working fine in the previous version

  4. #4
    Sencha User
    Join Date
    Apr 2010
    Location
    China
    Posts
    227
    Answers
    64
    Vote Rating
    20
      0  

    Default

    This is NOT a json !
    ??????json??????js???".join()"???????js????????
    json??????????????????????JS???????????
    I write English by translator.

  5. #5
    Sencha User
    Join Date
    Sep 2012
    Posts
    13
    Vote Rating
    0
      0  

    Default

    Yeah it's not really json, but it used to work loading it using a json store.

    Code:
    {"tracks":[
        {
            "id": 1,
            "title": "Song",
            "lyrics": [
                "AAAAA AAAAAA<br />",
                "BBBBBBBB<br />"
            ]
        }
    ]}
    How would I join the lyric lines then?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •