Kazu46Machi / earth-api-samples

Automatically exported from code.google.com/p/earth-api-samples
0 stars 0 forks source link

failureCallback (in createInstance) isn't called, exception thrown instead #94

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

What steps will reproduce the problem?
1. try to google.earth.createInstance without google earth plugin  
2.
3.

What is the expected output or behavior? What do you see instead?
I'd expect it to call the failure callback function, but instead I am
getting a JS error on line
23 of default.I.js you can see this on http://code.google.com/apis/earth/

Which plugin version are you using?
this happens if the plugin is disable

google.load("earth", "1");
google.load("maps", "2.99");  // For JS geocoder

Which browsers and operating systems are affected?
FF IE 6+

Please provide any additional information (code snippets/links) below.

here is line 23 of default.I.js that firebug is saying f is null and here
is the line it says it has the error:

e(a.node),l=a.visibility!=o;a.visibility=o;if(l){a.callbacks._dispatchCallback(h
.VISIBILITY,a)}}};h.prototype.destroy=function(){var
a=this;if(a.f!=-1){clearInterval(a.f)}a.callbacks={}};google.idlglue.NodeObserve
r=h;google.idlglue.NodeObserverCallbacks=f;google.idlglue.getElementRect=c})();w
indow.google.earth.setLanguage=function(b){window.google.earth.d=b};window.googl
e.earth.createInstance=function(b,c,e){var
f=window.google.earth.ErrorCode,h;if(typeof
b=="string"){h=document.getElementById(b)}else{h=b}if(!h){e(f.ERR_INVALID_DIV);r
eturn}var
a="";try{if(google.earth.d){a="intl/"+google.earth.d+"/"}}catch(g){}var
d="http://www.google.com/"+a+"earth/plugin/error.html",j=window.google.earth.h(f
,c,e);window.google.idlglue.create(h,j,d)};window.google.earth.h=function(b,c,e)
{return
function(f){if(f.browser==

Original issue reported on code.google.com by jha...@jason-hayes.us on 6 Nov 2008 at 7:27

GoogleCodeExporter commented 8 years ago
Confirmed, we're working on it.

Original comment by api.roman.public@gmail.com on 6 Nov 2008 at 11:44

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago

Original comment by api.roman.public@gmail.com on 6 Nov 2008 at 11:50

GoogleCodeExporter commented 8 years ago
Fix was submitted, should be live in a few hours (no plugin update required).

Original comment by api.roman.public@gmail.com on 7 Nov 2008 at 6:31

GoogleCodeExporter commented 8 years ago
How was this issue fixed? I would very much appreciate it!
Thanks,

Matt

Original comment by mpherrin...@gmail.com on 26 Jul 2011 at 6:35