Object [object global] has no method 'enableUTFencoding'

Hi all, I’m new to this forum so please let me know if there’s a more appropriate place to report bugs.

I’m getting the following error in Chrome and Firefox when initializing dataProcessor for Scheduler:

Object [object global] has no method 'enableUTFencoding'

Initialization code:

jQuery(function($) {
  scheduler.init("gb-resource-scheduler", new Date(), "week");
  scheduler.load("/resources/1/slot_groups.json", "json");
  var dp = dataProcessor("/resources/1/slot_groups");
  dp.init(scheduler);
});

Line 1235 of dhtmlxscheduler.js (unminified) is:

this.enableUTFencoding(true);

In this scope, “this” is actually “window” but I assume this is supposed to really be the
“dataProcessor” object itself.

Thoughts?

change

  var dp = dataProcessor("/resources/1/slot_groups");

as

  var dp = new dataProcessor("/resources/1/slot_groups");

Good God. That was pretty silly of me! Works perfectly, thanks.