Changeset 8083
- Timestamp:
- 11/06/07 11:57:11 (1 year ago)
- Files:
-
- spinoffs/scriptaculous/CHANGELOG (modified) (1 diff)
- spinoffs/scriptaculous/lib/prototype.js (modified) (6 diffs)
- spinoffs/scriptaculous/Rakefile (modified) (1 diff)
- spinoffs/scriptaculous/src/scriptaculous.js (modified) (1 diff)
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 1 5 * Ajax.InPlaceEditor now can deal with callbacks that return an object. Closes #10064. [tdd] 2 6 3 7 * 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].6 8 7 9 * 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 _rc11 /* Prototype JavaScript framework, version 1.6.0 2 2 * (c) 2005-2007 Sam Stephenson 3 3 * … … 8 8 9 9 var Prototype = { 10 Version: '1.6.0 _rc1',10 Version: '1.6.0', 11 11 12 12 Browser: { … … 76 76 Class.Methods = { 77 77 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]; 82 86 if (ancestor && Object.isFunction(value) && 83 87 value.argumentNames().first() == "$super") { … … 1822 1826 var elementClassName = element.className; 1823 1827 return (elementClassName.length > 0 && (elementClassName == className || 1824 elementClassName.match(new RegExp("(^|\\s)" + className + "(\\s|$)"))));1828 new RegExp("(^|\\s)" + className + "(\\s|$)").test(elementClassName))); 1825 1829 }, 1826 1830 … … 1864 1868 descendantOf: function(element, ancestor) { 1865 1869 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 1866 1884 while (element = element.parentNode) 1867 1885 if (element == ancestor) return true; … … 3130 3148 3131 3149 attrPresence: function(nodes, root, attr) { 3150 if (!nodes) nodes = root.getElementsByTagName("*"); 3132 3151 var results = []; 3133 3152 for (var i = 0, node; node = nodes[i]; i++) spinoffs/scriptaculous/Rakefile
r7287 r8083 6 6 PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : '' 7 7 PKG_TIMESTAMP = Time.new.to_s 8 PKG_VERSION = '1.8.0 _pre1' + PKG_BUILD8 PKG_VERSION = '1.8.0' + PKG_BUILD 9 9 PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}" 10 10 PKG_DESTINATION = ENV["PKG_DESTINATION"] || "dist" spinoffs/scriptaculous/src/scriptaculous.js
r8059 r8083 23 23 24 24 var Scriptaculous = { 25 Version: '1.8.0 _pre1',25 Version: '1.8.0', 26 26 require: function(libraryName) { 27 27 // inserting via DOM fails in Safari 2.0, so brute force approach