accessing $.data() of another window

accessing $.data() of another window

it seems to be a problem if I need to access data() of the elements from another window, like for example $(anyElement,window.opener.document).data() which returns null when in fact there is some data actually stored. I heard that data is stored in the $.cache, which is window-related, so that's understandable, but how can I work around that?

Certain plugins that use $.data no longer work correctly because of that. E.g., I can't use linkselect methods on linkselects located in the window.opener.document. Again, is there any workaround?