mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 11:42:49 -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 :: String -> VIdent -> [XML] -> [XML] -> XML
|
||||||
doCallback f cat i e =
|
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
|
i e
|
||||||
where cf = "callbacks." ++ f
|
where cf = "callbacks." ++ f
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user