VoiceXML: when checking the callbacks, use typeof to avoid errors with Opera 9.10.

This commit is contained in:
bringert
2007-01-03 18:17:52 +00:00
parent f6a5ea8738
commit 454a52d9a2

View File

@@ -171,7 +171,7 @@ fun2sub gr cat fun args =
doCallback :: String -> VIdent -> [XML] -> [XML] -> XML
doCallback f cat i e =
if_else ("callbacks && " ++ cf ++ " && !" ++ cf ++ "("++string (prIdent cat)++","++ catFieldId cat ++ ")")
if_else ("typeof callbacks != 'undefined' && typeof " ++ cf ++ " != 'undefined' && !" ++ cf ++ "("++string (prIdent cat)++","++ catFieldId cat ++ ")")
i e
where cf = "callbacks." ++ f