Author: hqm
Date: 2007-08-26 10:50:51 -0700 (Sun, 26 Aug 2007)
New Revision: 6246
Modified:
openlaszlo/branches/wafflecone/WEB-INF/lps/lfc/data/LzDataset.lzs
Log:
Change 20070826-hqm-6 by [EMAIL PROTECTED] on 2007-08-26 13:48:28 EDT
in /cygdrive/c/users/hqm/openlaszlo/wafflecone3/WEB-INF/lps/lfc
for http://svn.openlaszlo.org/openlaszlo/branches/wafflecone/WEB-INF/lps/lfc
Summary: fix for duplicate ondata events
New Features:
Bugs Fixed: LPP-4584
Bug: LPP-4584
Technical Reviewer: (pending)
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
a new response handler delegate was created for each request. Fix to create
just once
Tests:
Modified: openlaszlo/branches/wafflecone/WEB-INF/lps/lfc/data/LzDataset.lzs
===================================================================
--- openlaszlo/branches/wafflecone/WEB-INF/lps/lfc/data/LzDataset.lzs
2007-08-26 17:49:26 UTC (rev 6245)
+++ openlaszlo/branches/wafflecone/WEB-INF/lps/lfc/data/LzDataset.lzs
2007-08-26 17:50:51 UTC (rev 6246)
@@ -101,6 +101,7 @@
var multirequest = false;
var dataRequest = null;
var dataRequestClass = LzHTTPDataRequest;
+var dsloadDel = null;
DeclareEvent(prototype, 'ondata' );
/** Sent when the dataset's request results in an error. */
@@ -635,7 +636,9 @@
dreq.nsprefix = this.nsprefix;
// NB: You had better set the onstatus event handler *before* issuing
request
- this.dsloadDel = new LzDelegate( this , "handleDataResponse" , dreq,
"onstatus");
+ if (this.dsloadDel == null) {
+ this.dsloadDel = new LzDelegate( this , "handleDataResponse" , dreq,
"onstatus");
+ }
this.dataprovider.doRequest( dreq );
}
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins