View Full Version : onShare
Foen
November 18th, 2007, 08:37
Hi
Has anyone got onShare() to work? It is listed in the windowInstance documentation, but I can't get it to fire when I try to use it. I cannot find it in the d20 ruleset anywhere either.
:confused:
Stuart
Foen
July 13th, 2009, 21:28
Just tried this again recently, and still have no joy. Is this a feature that was never implemented?
DarkWiz58
July 20th, 2009, 17:10
I never got it to work either.
Goblin-King
August 26th, 2009, 07:48
I was browsing older lower priority reported issues, and finally got a chance to test this, in case anyone is still having trouble with it. It seems to be working as intended, please note that this is a handler, not an event. This means that you need to do something like:
function onShare()
doStuff();
end
function onInit()
window.onShare = onShare;
end
Simply defining this function in the window script doesn't do anything.
Foen
August 26th, 2009, 18:14
please note that this is a handler, not an event
Ahh, that would be it! *slaps forehead*
Stuart
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.