Loading ...
Sorry, an error occurred while loading the content.

Re: Override Tree refresh function, call parent refresh()

Expand Messages
  • dlublink
    I found the answer in the doc. YAHOO.widget.TextNode.superclass.refresh.call(this);
    Message 1 of 3 , Oct 1, 2007
    View Source
    • 0 Attachment
      I found the answer in the doc.

      YAHOO.widget.TextNode.superclass.refresh.call(this);


      --- In ydn-javascript@yahoogroups.com, "dlublink" <dlublink@...> wrote:
      >
      > Hello,
      >
      > I have written my own object which extends the Yahoo TextNode object
      > for use with the tree view:
      >
      > YAHOO.extend(YAHOO.widget.MyCustomerNode, YAHOO.widget.TextNode, {
      >
      > refresh : function () {
      >
      > // does something here
      > }
      > });
      >
      > From within the function refresh, how do I invoke the overriden method?
      >
      > Thanks,
      >
      > David
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.