[Google Wave APIs] Re: javascript alert needed to avoid wave.getState == null ?!

2009-11-16 Thread \x00
I would get rid of the global variables exentually.

--

You received this message because you are subscribed to the Google Groups 
"Google Wave API" group.
To post to this group, send email to google-wave-...@googlegroups.com.
To unsubscribe from this group, send email to 
google-wave-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-wave-api?hl=.




[Google Wave APIs] Re: javascript alert needed to avoid wave.getState == null ?!

2009-11-16 Thread \x00
this worked for me

   if (typeof wave != 'undefined' && wave.isInWaveContainer()){
   wave.setStateCallback(stateUpdated);
   wave.getState()
  }

that can also trigger the update callback once

I din't bother with registerOnLoadHandler as jquery does the load

--

You received this message because you are subscribed to the Google Groups 
"Google Wave API" group.
To post to this group, send email to google-wave-...@googlegroups.com.
To unsubscribe from this group, send email to 
google-wave-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-wave-api?hl=.