Ticket #31 (closed defect: fixed)

Opened 8 years ago

Last modified 8 years ago

replace() method returns void

Reported by: ajh Owned by: gogo
Priority: normal Milestone:
Component: Xinha Core Version:
Severity: normal Keywords:
Cc:

Description

The replace method is coded so that it returns the return value of the generate method (which is always void). It should probably be recoded so that it returns the actual HTMLArea object:

HTMLArea.replace = function(id, config) {
  var ta = HTMLArea.getElementById("textarea", id);
  if (ta) {
  	var taobj = new HTMLArea(ta, config);
  	taobj.generate();
  	return taobj;
  }
  else
  {
    return null;
  };
};

There's probably a better way of coding this, but this is the idea.

Change History

Changed 8 years ago by gogo

  • status changed from new to closed
  • resolution set to fixed

That looks fine, applied in changeset:31

Note: See TracTickets for help on using tickets.