Initializing the dojo widget

I tried to create my own widget for my site. when I load the page, it says: mixin # 0 is not a constructor being called. clsInfo.cls.prototype - undefined I can not find any information about clsInfo, so I do not know what it is. maybe the problem i am using dojo from google:

and my own script is located on localhost. so when my dojo on the page initializes something will go wrong with my script. I can not find good information about dojo, maybe I was looking in the wrong places? please help me solve my problem.

+3
source share
3 answers

, dijit.Dialog, . , , , , , "[ Object]". .

dojo.declare 3 :

  • "", .
  • , ( )

, dijit.Dialog, :

dojo.declare("myDialogType", [dijit.Dialog], {
    function1() {/*Code*/},
    function2() {/*Code*/}
}

[dijit.Dialog]] , .

- Firebug Dojo, CDN, , . Dojo , , , , . ; , , .

+3

, Dojo ? dojo.addOnLoad()? CDN . dojo.addOnLoad() , DOM , , Dojo , dijit._Widget.

0

, , _WidgetBase , _WidgetBase . , , .

0

Source: https://habr.com/ru/post/1781272/


All Articles