rem: this.isSubmitted = function() { return this.submitted; } this.setSubmitted = function(b) { if (typeof b == "boolean") { this.submitted = b; } } 
add: this.isSubmitted = function() { return submitted; } this.setSubmitted = function(b) { if (typeof b == "boolean") { submitted = b; } } 
context: function AraneaPage() {  function executor(eventHolder) { eventHolder.execute(); }  /* URL of aranea dispatcher servlet serving current page.    * Automatically set by AraneaTraverser.findSurroundingSystemForm(). */   var servletURL = null;  this.getServletURL = function() { return this.servletURL; }  this.setServletURL = function(url) { this.servletURL = new String(url); }    /* Indicates whether the page is completely loaded or not. Page is considered to    * be loaded when all onload events have completed execution. */  var loaded = false;  this.isLoaded = function() { return this.loaded; }  this.setLoaded = function(b) { if (typeof b == "boolean") { this.loaded = b; } }    /* Indicates whether some form on page is (being) submitted already   * by traditional HTTP request. */  var submitted = false;  this.isSubmitted = function() { return this.submitted; }  this.setSubmitted = function(b) { if (typeof b == "boolean") { this.submitted = b; } }    /* The number of background requests that have not received completely processed response yet. */  pendingResponses = 0;  /** Aranea JSP specific DOM tree traverser. */  var traverser = new AraneaTraverser();  this.getTraverser = function() { return traverser; }  /** Variables holding different (un)load events that should be executed when page loads -- on body (un)load or alike. */  var systemLoadEvents = new AraneaEventStore();  var clientLoadEvents = new AraneaEventStore();  var systemUnLoadEvents = new AraneaEventStore();    loadEvents = new AraneaStore();  loadEvents.add(systemLoadEvents);  loadEvents.add(clientLoadEvents);    unloadEvents = new AraneaStore();  unloadEvents.add(systemUnLoadEvents);  submitCallbacks = new Object();  this.addSystemLoadEvent = function(event) { systemLoadEvents.add(event); }  this.addClientLoadEvent = function(event) { clientLoadEvents.add(event); }  this.addSystemUnLoadEvent = function(event) { systemUnLoadEvents.add(event); }  this.onload = function() { loadEvents.forEach(executor); this.setLoaded(true); }  this.onunload = function() { unloadEvents.forEach(executor); }    // General callbacks executed before each form submit.  this.addSubmitCallback = function(callback) {    this.addSystemFormSubmitCallback('callbacks', callback);  }  // General callbacks executed before each submit of the specified system form.  this.addSystemFormSubmitCallback = function(systemFormId, callback) {    if (!submitCallbacks[systemFormId])	  submitCallbacks[systemFormId] = new AraneaEventStore();    submitCallbacks[systemFormId].add(callback);  }  this.executeCallbacks = function(systemFormId) {    if (submitCallbacks['callbacks'])	  submitCallbacks['callbacks'].execute();    	if (submitCallbacks[systemFormId])	  submitCallbacks[systemFormId].execute();  }  this.submit = function(element) {    if (this.isSubmitted() || !this.isLoaded())	  return false;	      var t = this.getTraverser();	var systemForm = t.findSurroundingSystemForm(element);    var preCondition = t.getEventPreCondition(element);    if (preCondition) {      var f = eval("function(element) {" + preCondition + "}");      if (!f()) {        return false;      }    }    if (systemForm) {      this.executeCallbacks(systemForm['id']);    }    return (this.findSubmitter(element, systemForm)).submit(element);  }  /**    * This function can be overwritten to support additional   * submit methods.   */  this.findSubmitter = function(element, systemForm) {    var updateRegions = element.getAttribute('arn-updrgns');	if (window.AraneaAA_Present && updateRegions && updateRegions.length > 0)	  return new DefaultAraneaAJAXSubmitter(systemForm);	return new DefaultAraneaSubmitter(systemForm);  }    // another submit function, takes all params that are currently possible to use.  // TODO: get rid of duplicated logic from: submit() and findSubmitter()  this.submit_6 = function(systemForm, eventId, eventTarget, eventParam, eventPrecondition, eventUpdateRegions) {    var el = document.createElement();    if (this.isSubmitted() || !this.isLoaded())	  return false;    if (eventPrecondition) {      var f = eval("function(element) {" + eventPrecondition + "}");      if (!f()) {        return false;      }    }    if (eventUpdateRegions != null && eventUpdateRegions.length > 0)       new DefaultAraneaAJAXSubmitter().submit_5(systemForm, eventId, eventTarget, eventParam, eventUpdateRegions);    else      new DefaultAraneaSubmitter(systemForm, eventId, eventTarget, eventParam);  }}
meta: 7108	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7108/ad0af2022e5921dc9a36d0d5cf62e390b55b6743/aranea.js/clean/etc/js/aranea/aranea.js