summaryrefslogtreecommitdiff
path: root/itjs.class
diff options
context:
space:
mode:
authorThomas BrĂ¼derli2007-09-05 16:00:35 +0000
committerThomas BrĂ¼derli2007-09-05 16:00:35 +0000
commitda11d93152ef0d6e562856029cb11b12f8b8b7d6 (patch)
tree8a92a0a072925095daa1bcc158194f5f2c51aa03 /itjs.class
parent868bb08efbf29eff1fdea410451eef34cb3182c6 (diff)
downloaditools-da11d93152ef0d6e562856029cb11b12f8b8b7d6.tar.gz
itools-da11d93152ef0d6e562856029cb11b12f8b8b7d6.tar.bz2
itools-da11d93152ef0d6e562856029cb11b12f8b8b7d6.zip
Check for callback function first. Same effect as XMLHTTPRequest.abort()
Diffstat (limited to 'itjs.class')
-rw-r--r--itjs.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/itjs.class b/itjs.class
index f6da4cb..3e45973 100644
--- a/itjs.class
+++ b/itjs.class
@@ -38,7 +38,7 @@ function serialize($values, $envelope = false)
if (($envelope || isset($values['eof'])) && ($callback = it::replace(array('[^\w.]' => ""), $_REQUEST['itjs_call'])))
{
$target = $_REQUEST['itjs_iframe'] ? "parent" : "window";
- $header = "$target.it_loader && $target.$callback(";
+ $header = "$target.it_loader && $target.$callback && $target.$callback.dataReady(";
$footer = "," . intval($_REQUEST['itjs_callid']) . ");";
if ($_REQUEST['itjs_iframe']) # iframe-based loading required by Opera 7