Scheduler for Iphone Mobile - undefined is not a construct -

Enviroment:

  • I’m using Trigger IO
  • mobile iphone 5
  • using dhx mobile scheduler

The Problem that i have that code that construct the schedule control

        try {
            dhx.ui({
                container: "sch",
                view: "scheduler",
                id: "scheduler"
            });
        } catch (e) {
            alert($$("scheduler"));
            alert($("[view_id='scheduler']").length);
            alert(e.message);
        }

When I close the mobile app and reopen it , i got JavaScript crash “undefined is not a construct "
at construct code .
BTW: the $$(“scheduler”) is undefined and $(”[view_id=‘scheduler’]").length equals 0

that function crashes and i don’t know why :frowning:

Thanks

$$(“scheduler”) returns an object only if a view with id=“scheduler” is created. Please check your code. You can also attach a complete demo (html page with scheduler config) where we could reproduce the problem.