javascript - Uncaught TypeError: Cannot read property 'ViewSelector2' of undefined -
i implementing analytics dashboard using embed api , while executing code custom components link "https://ga-dev-tools.appspot.com/embed-api/custom-components/"
i got error "uncaught typeerror: cannot read property 'viewselector2' of undefined".
please help.
somewhere in code trying access viewselector2
property of not yet exist. error if did this:
var myfunc = function() { alert(obj.myproperty); } myfunc(); // calling function before object `obj` being set var obj = { myproperty: 'asdf' };
to fix this:
var myfunc = function() { alert(obj.myproperty); } var obj = { myproperty: 'asdf' }; myfunc(); // calling function after object `obj` being set
that's example. since have provided no code, can't more that.
Comments
Post a Comment