Please note that Sahi's development and support teams do not actively monitor this. This is more a community forum. If you are a Sahi Pro user looking for commercial support, please email support @ with your query.

Problem on setting global

globalwormingglobalworming Moderators
edited July 2014 in Sahi - Open Source
In this testscript, the logName function is not saved in the global:
function $anObject($name) {
  var $this=this;

$anObject.prototype.logName = function(){

var $instance = new $anObject("instance of anObject");


_setGlobal("instance", $instance);

var $globalInstance = _getGlobal("instance");

//does not work

Is there an easy workaround for this issue?

Sign In or Register to comment.