push support level

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jeff

    push support level

    I seem to recall that IE at one time did not support push. How far
    back do we have to go before we lose push? Is it IE4?

    Jeff
  • liamgegan@gmail.com

    #2
    Re: push support level

    Any version of IE less than 5, yes.

    Maybe create your own push function?

    Array.prorotype .push=function( )
    {
    for(var i=0;i<arguments .length;i++)
    this[this.length]=arguments[i];
    return this.length;
    }

    On Jan 19, 10:50 am, Jeff <jeff@spam_me_n ot.comwrote:
    I seem to recall that IE at one time did not support push. How far
    back do we have to go before we lose push? Is it IE4?
    >
    Jeff

    Comment

    • liamgegan@gmail.com

      #3
      Re: push support level

      Sorry, that should be:

      if(!Array.proto type.push)
      {
      Array.prototype .push=function( )
      {
      for(var i=0;i<arguments .length;i++)
      this[this.length]=arguments[i];
      return this.length;
      }
      }

      On Jan 19, 10:50 am, Jeff <jeff@spam_me_n ot.comwrote:
      I seem to recall that IE at one time did not support push. How far
      back do we have to go before we lose push? Is it IE4?
      >
      Jeff

      Comment

      • David Mark

        #4
        Re: push support level

        On Jan 18, 11:51 pm, "liamge...@gmai l.com" <liamge...@gmai l.com>
        wrote:
        Any version of IE less than 5, yes.
        >
        IIRC, IE5.0 doesn't have push either (as well as several other Array
        methods.)
        Maybe create your own push function?
        >
        Array.prorotype .push=function( )
        {
            for(var i=0;i<arguments .length;i++)
                this[this.length]=arguments[i];
            return this.length;
        >
        }

        Comment

        • VK

          #5
          Re: push support level

          On Jan 19, 2:50 am, Jeff <jeff@spam_me_n ot.comwrote:
          I seem to recall that IE at one time did not support push. How far
          back do we have to go before we lose push?
          Far enough to make this problem irrelevant for the current coding.
          Array push method in IE exists since 5.5

          Comment

          Working...