> From: Pops
>      var how = (settings.show!="")?settings.show:"show";
>      eval("$box."+how+"()");

foo.bar means the same thing as foo['bar'], so this code is the same as:

  var how = (settings.show!="")?settings.show:"show";
  $box[how]();

Or a very clean and simple version:

  $box[ settings.show || 'show' ]();

-Mike

Reply via email to