[Laszlo-checkins] r13834 - openlaszlo/trunk/lps/components/incubator/uploader
bargull@openlaszlo.org
bargull at openlaszlo.org
Fri May 8 08:10:41 PDT 2009
Author: bargull
Date: 2009-05-08 08:10:38 -0700 (Fri, 08 May 2009)
New Revision: 13834
Modified:
openlaszlo/trunk/lps/components/incubator/uploader/fileupload.lzx
Log:
Change 20090507-bargull-t1h by bargull at dell--p4--2-53 on 2009-05-07 00:27:52
in /home/Admin/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: fix fileupload compile-error in swf9-nondebug
New Features:
Bugs Fixed: LPP-8150 (fileupload (incubator) won't compile without debug=true in swf9)
Technical Reviewer: henry
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
The "file" references are also necessary in non-debug mode, so I've moved them out of the $debug-block.
I've also commented out all Debug.write statements.
Tests:
Modified: openlaszlo/trunk/lps/components/incubator/uploader/fileupload.lzx
===================================================================
--- openlaszlo/trunk/lps/components/incubator/uploader/fileupload.lzx 2009-05-08 14:59:34 UTC (rev 13833)
+++ openlaszlo/trunk/lps/components/incubator/uploader/fileupload.lzx 2009-05-08 15:10:38 UTC (rev 13834)
@@ -91,63 +91,63 @@
<switch>
<when property="$as3">
<method name="cancelHandler" args="event:Event">
- if ($debug) {
- Debug.write(this, "got onCancel", event);
- }
+ // if ($debug) {
+ // Debug.write(this, "got onCancel", event);
+ // }
this.onCancel();
</method>
<method name="progressHandler" args="event:ProgressEvent">
- if ($debug) {
- var file:FileReference = event.target cast FileReference;
- Debug.write(this, "got onProgress name=", file.name,
- "bytesLoaded=", event.bytesLoaded, "bytesTotal=", event.bytesTotal);
- }
+ var file:FileReference = event.target cast FileReference;
+ // if ($debug) {
+ // Debug.write(this, "got onProgress name=", file.name,
+ // "bytesLoaded=", event.bytesLoaded, "bytesTotal=", event.bytesTotal);
+ // }
this.onProgress(file, event.bytesLoaded, event.bytesTotal);
</method>
<method name="openHandler" args="event:Event">
- if ($debug) {
- Debug.write(this, "got onOpen");
- }
+ // if ($debug) {
+ // Debug.write(this, "got onOpen");
+ // }
this.onOpen();
</method>
<method name="completeHandler" args="event:Event">
- if ($debug) {
- Debug.write(this, "got onComplete");
- }
+ // if ($debug) {
+ // Debug.write(this, "got onComplete");
+ // }
this.onComplete(event.target);
</method>
<method name="securityErrorHandler" args="event:SecurityErrorEvent">
- if ($debug) {
- Debug.write(this, "got onSecurityError");
- }
+ // if ($debug) {
+ // Debug.write(this, "got onSecurityError");
+ // }
this.onSecurityError();
</method>
<method name="ioErrorHandler" args="event:IOErrorEvent">
- if ($debug) {
- Debug.write(this, "got onIOError");
- }
+ // if ($debug) {
+ // Debug.write(this, "got onIOError");
+ // }
this.onIOError();
</method>
<method name="selectHandler" args="event:Event">
- if ($debug) {
- var file:FileReference = FileReference(event.target);
- Debug.write(this, "got onSelect", "name=", file.name);
- }
+ var file:FileReference = FileReference(event.target);
+ // if ($debug) {
+ // Debug.write(this, "got onSelect", "name=", file.name);
+ // }
this.onSelect(file);
</method>
<method name="httpStatusHandler" args="event:HTTPStatusEvent">
<![CDATA[
- if ($debug) {
- Debug.write(this, "got onHTTPError");
- }
+ // if ($debug) {
+ // Debug.write(this, "got onHTTPError");
+ // }
if (event.status >= 400 && event.status < 500) {
this.onHTTPError();
}
More information about the Laszlo-checkins
mailing list