Hi there,

how do I compare two LocalizedString objects, ore even against a JavaScript
literal String (in qooxdoo 0.8.4 or higher)?

In qooxdoo 0.7.4 you could do this:
<code class=javascript>
  var vLabel = this.tr("Alle Benutzer");

  // Evaluated into <true>:
  if (vLabel.getId() == "Alle Benutzer") {
    //...
  }
  // Even this worked:
  if (vLabel.getId() === "Alle Benutzer") {
    //...
  }
</code>

While the LocalizedString Class in qooxdoo 0.8.4 (and 1.0 and trunk)
do not have any id property...

Even this evaluates to false:
<code class=javascript>
  this.tr("same") == this.tr("same")
</code>

I have to somehow compare against the private "__messageId", or is there any
static Class providing a compare(a, b) method in the framework?

I would have written my own compare class/method, but I don't like to access
private members :) ...

Thanks in advance,
  Peter


------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to