Recently I had an issue where I always get 3 as callback whenever I require a custom module.
My headerWidget is something like this:
Console always used to display only 3. I wondered as to why and here is the solution for that.
The solution is to give the custom widget as module.
Source: Debugging dojo.
require(["modules/headerWidget"],function(header){
console.log(header);
});
My headerWidget is something like this:
require([ "dojo/_base/declare" , "dijit/_WidgetBase", "dijit/_TemplatedMixin" ],
function(declare, _WidgetBase, _TemplatedMixin) {
return declare("headerWidget",[ _WidgetBase, _TemplatedMixin ],{
templateString : <div></div> ,
});
});
Console always used to display only 3. I wondered as to why and here is the solution for that.
The solution is to give the custom widget as module.
define([ "dojo/_base/declare" , "dijit/_WidgetBase", "dijit/_TemplatedMixin" ],
function(declare, _WidgetBase, _TemplatedMixin) {
return declare("headerWidget",[ _WidgetBase, _TemplatedMixin ],{
templateString : <div></div> ,
});
});
Source: Debugging dojo.
I started on COPD Herbal treatment from Ultimate Life Clinic, the treatment worked incredibly for my lungs condition. I used the herbal treatment for almost 4 months, it reversed my COPD. My severe shortness of breath, dry cough, chest tightness gradually disappeared. Reach Ultimate Life Clinic via their website www.ultimatelifeclinic.com . I can breath much better and It feels comfortable!
ReplyDelete