Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 8083

Show
Ignore:
Timestamp:
11/06/07 11:57:11 (1 year ago)
Author:
madrobby
Message:

script.aculo.us: version bump

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • spinoffs/scriptaculous/CHANGELOG

    r8069 r8083  
     1*V1.8.0* (November 6, 2007) 
     2 
     3* Update to Prototype 1.6.0 final 
     4 
    15* Ajax.InPlaceEditor now can deal with callbacks that return an object.  Closes #10064.  [tdd] 
    26 
    37* Fix a potential problem with the loader and Firefox 2.0 on the Mac.  Closes #9951.  [awaters] 
    4  
    5 * Update to Prototype trunk revision [8057]. 
    68 
    79* Add duration and distance options to Effect.Shake.  Closes #8637.  [amiel, rmm5t] 
  • spinoffs/scriptaculous/lib/prototype.js

    r8058 r8083  
    1 /*  Prototype JavaScript framework, version 1.6.0_rc1 
     1/*  Prototype JavaScript framework, version 1.6.0 
    22 *  (c) 2005-2007 Sam Stephenson 
    33 * 
     
    88 
    99var Prototype = { 
    10   Version: '1.6.0_rc1', 
     10  Version: '1.6.0', 
    1111 
    1212  Browser: { 
     
    7676Class.Methods = { 
    7777  addMethods: function(source) { 
    78     var ancestor = this.superclass && this.superclass.prototype; 
    79  
    80     for (var property in source) { 
    81       var value = source[property]; 
     78    var ancestor   = this.superclass && this.superclass.prototype; 
     79    var properties = Object.keys(source); 
     80 
     81    if (!Object.keys({ toString: true }).length) 
     82      properties.push("toString", "valueOf"); 
     83 
     84    for (var i = 0, length = properties.length; i < length; i++) { 
     85      var property = properties[i], value = source[property]; 
    8286      if (ancestor && Object.isFunction(value) && 
    8387          value.argumentNames().first() == "$super") { 
     
    18221826    var elementClassName = element.className; 
    18231827    return (elementClassName.length > 0 && (elementClassName == className || 
    1824       elementClassName.match(new RegExp("(^|\\s)" + className + "(\\s|$)")))); 
     1828      new RegExp("(^|\\s)" + className + "(\\s|$)").test(elementClassName))); 
    18251829  }, 
    18261830 
     
    18641868  descendantOf: function(element, ancestor) { 
    18651869    element = $(element), ancestor = $(ancestor); 
     1870 
     1871    if (element.compareDocumentPosition) 
     1872      return (element.compareDocumentPosition(ancestor) & 8) === 8; 
     1873 
     1874    if (element.sourceIndex && !Prototype.Browser.Opera) { 
     1875      var e = element.sourceIndex, a = ancestor.sourceIndex, 
     1876       nextAncestor = ancestor.nextSibling; 
     1877      if (!nextAncestor) { 
     1878        do { ancestor = ancestor.parentNode; } 
     1879        while (!(nextAncestor = ancestor.nextSibling) && ancestor.parentNode); 
     1880      } 
     1881      if (nextAncestor) return (e > a && e < nextAncestor.sourceIndex); 
     1882    } 
     1883 
    18661884    while (element = element.parentNode) 
    18671885      if (element == ancestor) return true; 
     
    31303148 
    31313149    attrPresence: function(nodes, root, attr) { 
     3150      if (!nodes) nodes = root.getElementsByTagName("*"); 
    31323151      var results = []; 
    31333152      for (var i = 0, node; node = nodes[i]; i++) 
  • spinoffs/scriptaculous/Rakefile

    r7287 r8083  
    66PKG_BUILD       = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : '' 
    77PKG_TIMESTAMP   = Time.new.to_s 
    8 PKG_VERSION     = '1.8.0_pre1' + PKG_BUILD 
     8PKG_VERSION     = '1.8.0' + PKG_BUILD 
    99PKG_FILE_NAME   = "#{PKG_NAME}-#{PKG_VERSION}" 
    1010PKG_DESTINATION = ENV["PKG_DESTINATION"] || "dist" 
  • spinoffs/scriptaculous/src/scriptaculous.js

    r8059 r8083  
    2323 
    2424var Scriptaculous = { 
    25   Version: '1.8.0_pre1', 
     25  Version: '1.8.0', 
    2626  require: function(libraryName) { 
    2727    // inserting via DOM fails in Safari 2.0, so brute force approach