framework fix

The ding~isFunction check now works even for functions from other windows.