Search code examples
extjsextjs4extensible

Extensible.log is undefined


I am trying to get the Calendar Pro from Extensible to work.

if I do everything as the example says here, I get an undefined for the log function on Extensible.js :

enter image description here

However everything looks alright in my code :

Ext.Loader.setConfig({
    enabled: true,
    disableCaching: false,
    paths: {
        "Extensible": "js/lib/extensible-1.5.2/src",
        "Extensible.example": "js/lib/extensible-1.5.2/examples"
    }
});
Ext.require([

    'Extensible.calendar.CalendarPanel',
    'Extensible.calendar.data.MemoryEventStore',
    'Extensible.calendar.CalendarPanel',
    'Extensible.example.calendar.data.Events'
]);

Both the src and the examples paths are correct.

My Extinsible folder structure sits next to the extjs src like this :

enter image description here

It seems like I am missing something or Extensible is not yet being initialised properly.


Solution

  • Looks like you just forgot to include the Extensible.js by adding it to your requires statement:

    Ext.require([
        'Extensible.Extensible', //here
        'Extensible.calendar.CalendarPanel',
        'Extensible.calendar.data.MemoryEventStore',
        'Extensible.calendar.CalendarPanel',
        'Extensible.example.calendar.data.Events'
    ]);
    

    This will include the main Extinsible.js file as well as the calendar and example files.