Author: toshok
Date: 2007-06-20 17:37:52 -0400 (Wed, 20 Jun 2007)
New Revision: 80369

Modified:
   trunk/moon/plugin/ChangeLog
   trunk/moon/plugin/plugin.cpp
Log:
2007-06-20  Chris Toshok  <[EMAIL PROTECTED]>

        * plugin.cpp (StreamAsFile): don't try to execute onLoad if there
        isn't one.



Modified: trunk/moon/plugin/ChangeLog
===================================================================
--- trunk/moon/plugin/ChangeLog 2007-06-20 21:35:49 UTC (rev 80368)
+++ trunk/moon/plugin/ChangeLog 2007-06-20 21:37:52 UTC (rev 80369)
@@ -1,3 +1,8 @@
+2007-06-20  Chris Toshok  <[EMAIL PROTECTED]>
+
+       * plugin.cpp (StreamAsFile): don't try to execute onLoad if there
+       isn't one.
+
 2007-06-20  Everaldo Canuto  <[EMAIL PROTECTED]>
 
        * plugin.cpp, plugin.h: Implement JsExecute method and use it to call 
onload

Modified: trunk/moon/plugin/plugin.cpp
===================================================================
--- trunk/moon/plugin/plugin.cpp        2007-06-20 21:35:49 UTC (rev 80368)
+++ trunk/moon/plugin/plugin.cpp        2007-06-20 21:37:52 UTC (rev 80369)
@@ -386,7 +386,7 @@
                        surface_attach (this->surface, element);
                #endif
 
-               if (!this->isLoaded) {
+               if (!this->isLoaded && this->onLoad) {
                        this->isLoaded = true;
                        JsExecute (this->onLoad);
                }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to