This is a migrated thread and some comments may be shown as answers.

Cultures syntax error

2 Answers 82 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 23 Sep 2013, 07:36 PM
I am getting an error after updating to the Q2 2013 SP. I was previously on Q2 2013.

Am I missing something? When I try to use kendo.core.js I get a syntax error.
Uncaught TypeError: Cannot set property 'en-US' of undefined kendo.core.js:472
Where line 472 is the following. kendo.cultures hasn't been initialized anywhere.
kendo.cultures["en-US"] = {
Prior to this release that line read:
kendo.cultures = {"en-US" : {

Am I mistaken or missing a dependency?

2 Answers, 1 is accepted

Sort by
0
Accepted
Mihai
Telerik team
answered on 24 Sep 2013, 07:02 AM
Hello,

The "cultures" property is defined earlier in kendo.core.js -- at the start of the file, looks like this:

var kendo = window.kendo = window.kendo || { cultures: {} },

so I see no apparent reason for that error, except perhaps if you have a global "kendo" variable.  Could you send me an archive with your files so I investigate?

Regards,
Mihai
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Ryan
Top achievements
Rank 1
answered on 24 Sep 2013, 01:51 PM
This was my mistake. I suppress the kendo set line and didn't realize it had been changed to include cultures.
Tags
General Discussions
Asked by
Ryan
Top achievements
Rank 1
Answers by
Mihai
Telerik team
Ryan
Top achievements
Rank 1
Share this question
or