@@ -740,17 +740,17 @@ removeIDs js =
740740 JSReturn (JSApp (JSIdent fun) args)
741741 )])
742742 | Just pos <- lookup fun ids
743− , pos < length args = args !! pos
743+ , pos < length args = removeIDCall ids (args !! pos)
744744
745745 removeIDCall ids (JSNew _ [JSFunction [] (
746746 JSReturn (JSApp (JSIdent fun) args)
747747 )])
748748 | Just pos <- lookup fun ids
749− , pos < length args = args !! pos
749+ , pos < length args = removeIDCall ids (args !! pos)
750750
751751 removeIDCall ids js@(JSApp id@(JSIdent fun) args)
752752 | Just pos <- lookup fun ids
753− , pos < length args = args !! pos
753+ , pos < length args = removeIDCall ids (args !! pos)
754754
755755 removeIDCall ids js = transformJS (removeIDCall ids) js
756756