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

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -