mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
VoiceXML: when checking the callbacks, use typeof to avoid errors with Opera 9.10.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user