I have a Javascript plugin for the HTML5 viewer. I need to call its methods from outside krpano. What's the right way to do it?
In my plugin I do:
Code
local.registerplugin = function (krpanointerface, pluginpath, pluginobject) {
plugin.attachEvents = attachEvents;
}
function attachEvents() {alert('attached');}
then I've tried calling:
and
but notghin happens.