[ Index ]
 

Code source de eZ Publish 3.9.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/design/standard/javascript/lib/ -> ezjslibie50support.js (source)

   1  //
   2  // Created on: <14-Jul-2004 14:18:58 dl>
   3  //
   4  // SOFTWARE NAME: eZ publish
   5  // SOFTWARE RELEASE: 3.9.0
   6  // BUILD VERSION: 17785
   7  // COPYRIGHT NOTICE: Copyright (C) 1999-2006 eZ systems AS
   8  // SOFTWARE LICENSE: GNU General Public License v2.0
   9  // NOTICE: >
  10  //   This program is free software; you can redistribute it and/or
  11  //   modify it under the terms of version 2.0  of the GNU General
  12  //   Public License as published by the Free Software Foundation.
  13  //
  14  //   This program is distributed in the hope that it will be useful,
  15  //   but WITHOUT ANY WARRANTY; without even the implied warranty of
  16  //   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  17  //   GNU General Public License for more details.
  18  //
  19  //   You should have received a copy of version 2.0 of the GNU General
  20  //   Public License along with this program; if not, write to the Free
  21  //   Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  22  //   MA 02110-1301, USA.
  23  //
  24  //
  25              
  26  /*! \file ezjslibie50support.js 
  27  */
  28  
  29  /*!    
  30      \brief
  31      
  32      Some functions which are not built-in IE 5.0.
  33      
  34      Functions: 
  35          Array.push,
  36          Array.pop, 
  37          Array.splice(REMOVE elements only).
  38  */
  39  
  40  if ( !Array.push )
  41  {
  42      Array.prototype.push=function(i)
  43      {
  44          this[this.length] = i;
  45      }
  46  }
  47  
  48  if ( !Array.pop )
  49  {
  50      Array.prototype.pop=function()
  51      {
  52          var last = null;
  53          if ( this.length > 0 )
  54          {
  55              last = this[this.length - 1 ];
  56              this.length = this.length - 1;
  57          }
  58          return last;
  59      }
  60  }
  61  
  62  if ( !Array.splice )
  63  {
  64      // ONLY REMOVES 
  65      Array.prototype.splice=function(startIdx, count)
  66      {
  67          for ( var i = startIdx; i < this.length - count; i++ )
  68              this[i] = this[i + count];
  69  
  70          this.length = this.length - count;
  71      }
  72  }
  73  
  74  


Généré le : Sat Feb 24 10:30:04 2007 par Balluche grâce à PHPXref 0.7