Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-4983

extra recursion on Wicket.DOM.get

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 6.4.0
    • 6.5.0
    • wicket
    • None

    Description

      Any reason for DOM.get not being like

      get: function (arg) {
      if (isUndef(arg))

      { return null; }
      if (arguments.length > 1) {
      var e = [];
      for (var i = 0; i < arguments.length; i++) { e.push(get(arguments[i])); }
      return e;
      } else if (typeof arg === 'string') { return document.getElementById(arg); } else { return arg; }

      instead of

      get: function (arg) {
      if (isUndef(arg)) { return null; }

      if (arguments.length > 1) {
      var e = [];
      for (var i = 0; i < arguments.length; i++)

      { e.push(Wicket.$(arguments[i])); }

      return e;
      } else if (typeof arg === 'string')

      { return document.getElementById(arg); }

      else

      { return arg; }

      ?

      Attachments

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            reiern70 Ernesto Reinaldo Barreiro
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: