Featured post
javascript - initialization of dojo widget -
i tried create custom widget site. when loaded page says: mixin #0 not callable constructor. clsinfo.cls.prototype undefined can't find information clsinfo, don't know it. maybe problem use dojo google:
and own script located on localhost. when dojo on page initializes goes wrong script. can't find info on dojo, maybe search in wrong places? please me resolve problem
i ran when trying override dijit.dialog bind events controls within it. we've yet see if binding part work, if @ source, happens when 1 of bases passed in second argument fails resolve "[object function]". in case, passing string in.
dojo.declare takes 3 arguments:
- the name of custom object "class" you're building
- an array of base classes, parents provide functionality (not string names of classes)
- a hash of functions , declarations
so if want override dijit.dialog, have do:
dojo.declare("mydialogtype", [dijit.dialog], { function1() {/*code*/}, function2() {/*code*/} }
i had ["dijit.dialog"] second argument , problem.
i strongly recommend using web inspector or firebug uncompressed local copies of dojo library rather cdn figure out what's going on , debug these types of problems. dojo's documentation extensive not complete in areas , behaviors have figured out looking @ code expects. that's not intended slight authors; once going it's pretty awesome product, , documentation volunteer work appreciated.
- Get link
- X
- Other Apps
Comments
Post a Comment