Hi,
i try add plugin to krpano dynamicaly via JavaScript.
My code :
function krpanoplugin() {
var local = this; // save the 'this' pointer from the current plugin object
var krpano = null; // the krpano and plugin interface objects
var device = null;
var plugin = null;
....
// same code from documentation
}
than i call :
krpano.call("addplugin(test);");
krpanoo.set("plugin[test].url", krpanoplugin());
but i get error : Uncaught TypeError: local is undefined.
can someone help me why in Javascript cant access pointer from the current plugin object ?
Many thanks guys ..