📄 changelog
字号:
var node = Builder.build("<p>this is <b>neat!</b></p>");* Add a pulses parameter to Effect.Pulsate to control the amount of pulses, fixes #6245 [leeo] For example, Effect.Pulsate('d8', {pulses: 2}) would pulsate twice. If the option is not given, it defaults to five pulses.* Fix an issue with clicking on a slider span resulting in an exception, fixes #4707 [thx sergeykojin]* Fix an issue with Draggables when no options are supplied, fixes #6045 [thx tdd]*V1.6.4* (September 6, 2006)* Hotfix IE issues with patched Prototype V1.5.0_rc1*V1.6.3* (September 5, 2006)* Update Prototype to V1.5.0_rc1* Merge assertElementsMatch and assertElementMatches from Prototype's [4986] unittest.js [Sam Stephenson]* Update Prototype to revision [4930]* Fix various issues with IE detection and Opera, and setOpacity, fixes #3886, #5973* Make Sortable.serialize handle DOM IDs like "some_element_1" correctly, fixes #5324* Add assertRespondsTo and shouldRespondTo assertions* Add experimental alternate syntax for unit tests (Behaviour Driven Development-style)* Add support for onStart, onDrag and onEnd events directly on Draggables (invoked from the Draggables.notify), fixes #4747 [thx scriptkitchen]* Add element shortcuts to Builder that can be activated by calling Builder.dump() (see the unit test), fixes #4260 [thx napalm]* Fix selection of correct option in SELECT element generated by InPlaceCollectionEditor for indexed option arrays, fixes #4789 [thx steve]* Add autoSelect option to Autocompleters to auto select an entry if only one is returned, fixes #5183 [thx cassiano dandrea]* Added delay option to Draggables and Sortables, see test/functional/dragdrop_delay_test.html for usage, implements #3325 [thx lsimon, tomg]* Remove revert cache code obsoleted by #4706, fixes #3436 (again) [thx tomg]* Fix autoscrolling inside scrollable containers when window is scrolled too, fixes #5200 [thx wseitz]* Make Effect.Puff work correctly for floating elements, fixes #3777 [thx michael hartl]* Add version and timestamp to indvidual library files for easier identification (the files are preprocessed by the Rake fresh_scriptaculous task), fixes #3015 [thx Tobie]* Add assertIndentical and assertNotIdentical unit test assertions, which test for equality and common type, fixes #5822 [thx glazedginger]* Add integration test for Ajax autocompleter for results with no linebreaks, #4149* Fix an issue with redrawing ghosted draggables that are inside a scrolled container, fixes #3860 [thx gkupps, tsukue]* Added a custom exception to all base effects when used on non-existing DOM elements, added a assertRaise method to unit tests* Fix autoscrolling when dragging an element unto a scrollable container, fixes #5017 [thx tomg]* Fix a condition where overriding the endeffect on Draggables without overriding the starteffect too leads to a Javascript error [thx Javier Martinez]* Fix a possible error with the drag/drop logic (affects the solution to #4706)*V1.6.2** Fix a problem in the drag and drop logic if an reverting/drag ending draggable was initialized for a new drag (for example by clicking repeatedly) for all cases where the default start/revert/end-effects are used, fixes #4706 [thx tecM0]* Fix possible memory leaks with Draggables, fixes #3436 [thx aal]* Throw nicer errors when requires script.aculo.us libraries are not loaded, fixes #5339* Make slider handles work when not displayed initially by using CSS width/height, fixes #4011 [thx foysavas]* Update sortable functional test with onUpdate counter* Make more Element extensions unit tests work on Safari* Add the assertMatch unit test assertion for asserts with RegExps [thx Ian Tyndall]* Fix a problem with Effect.Move causing "jumping" elements because of very low float numbers in some situations* Fix a missing semicolon in dragdrop.js, fixes #5569 [thx mackalicious]* Fix a slight inaccuracy with Effect.Scale that could lead the scaling to be one pixel off* Be more prototypish with Effect.Transitions.linear* Make Effect.Scale recognize font sizes that use the pt unit, fixes #4136 [thx aljoscha]* Fix IE hack in Effect.Opacity, fixes #5444 [thx nicholas]* Fix IFRAME layout fix for IE and Autocompleter, fixes #5192 [thx tommy skaue]* Fix only option in onEmptyHover, fiex #5348 [thx glenn nilsson]* Fix Effect.BlindDown and SwitchOff handling of supplied callbacks, fixes #5089 [thx martinstrom]* Fix a problem with field focus on Ajax.InPlaceEditor and loading external text, fixes #4988, #5244 [thx rob]* Do not attempt to scroll if scrollspeed is 0/0, fixes #5035 [thx tomg]* Fix a problem with Sortable Tree serialization, fixes #4939, #4688, #4767 [thx Sammi Williams]* Fix an endless loop with sliders, fixes #3226, #4051, #4765 [thx jeff]* Make autocompleter work with update DIVs that have scrollbars, fixes #4782 [thx Tommy Skaue]* Corrected options parsing on switchoff effect, fixes #4710 [thx haldini]*V1.6.1** Update to Prototype 1.5.0_rc0* Add Draggable object as third parameter to snap, fixes #4074 [thx mdaines]* Fix an IE flicker with SlideUp/SlideDown, fixes #3774, [thx sbbowers]* Add parsing/setting of any currently set opacity CSS rule to default opacity effect on draggables, fixes #3682 [thx Mike A. Owens]* Added prototype $() performance patch from #4477 and updated effects.js to new Element.addMethods() syntax* Sortable trees [thx Sammi Williams, sammi@oriontransfer.co.nz] - Added functional test (test/functional/sortable_tree_test.html) - removed greedy option - modified the way Droppables.show works - added affected list - added Droppables.findDeepestChild - modified Sortable.options to work for trees - modified Sortable.onEmptyHover with additional logic to insert the element at a certain place according to the overlap - modified Sortable.onHover to avoid DOM Exceptions - modified Sortable.create to support the creation of Sortable trees - added two convenience functions - Sortable.findElements and Sortable.findTreeElements - Added Sortable.tree (and a number of private functions to facilitate it) Returns a tree structure: var root = { id: null, parent: null, children: <children>, container: <sortable element>, } var child = { parent: <node>, children: <array>, id: <string> (as per options.format), element: <element>, container: <element>, position: <integer> } This is intended to become part of the public API, and can be used to manipulate the tree programatically. - Modified Sortable.serialize to use Sortable.tree when set in the options.* Fix a problem with window scrolling on draggables [thx Gregory Hill]* Let the benchmark method return the time taken in ms, so it can be used for time-based assertions* Fix problem with id-based handle names and draggables* More Element.childrenWithClassName optimization* Added benchmark method to unittest.js; some cleaning up of unit tests* Add fix for IE memory leaks in included prototype.js from [4094]*V1.6.0** Major speedup for sortable with handles initialization [thx Jamis Buck]* Update to latest Prototype 1.5.0_pre1 trunk* Add functional "random effects" test, also for browser compatibility testing* Fix two typos introduced with the 1.5 Methods syntax update* Add functional test for $$-triggered effects with .visualEffect* Fix shift-tab for autocompleter in Safari, fixes #4423 [thx matt]* Prepare for script.aculo.us 1.6, add Prototype 1.5 requirement and check that Element.Methods is available in the scriptaculous loader* Refactor effects.js to use the new Prototype 1.5 Element Methods syntax* Update to latest Prototype 1.5.0_pre0 trunk* Fix a problem with the draggable window scrolling code and scrolling inside overflow containers* Add passing through of scroll options from Sortable to Draggable [thx Gregory Hill]* Make it possible to scroll window on dragging, #3921 [thx rdmiller]* Make Element.forceRerendering give up on any exception (this fixes various problems with IE)* added visualEffect method for the Element Mixin, fixed so you can chain multiple calls. [Rick Olson]* Fix only option on Sortable.create to accept multiple class names, fixes #3427 [thx glenn nilsson]* Added workaround for a rendering bug in Safari when using floating elements with Effect.Appear* Update lib/prototype.js to Prototype 1.5.0_pre0 *V1.5.3** Change version number to V1.5.3, prepare Rakefile* Remove unneeded height restoring in Effect.BlindDown as that is handled internally by the restoreAfterFinish option to Effect.Scale, fixes #3667 [thx Ross Lawley]* Added Ajax.InPlaceCollectionEditor which uses a SELECT element instead of a text field (see test/functional/ajax_inplacecollectioneditor_test.html for usage), #3491 [thx anna]* Enable in place editor to use RJS (implements a new evalScripts option for the in place editor), #3490 [thx Richard Livsey]* Added Sortable.setSequence to programmatically reorder a Sortable, #3711 [thx Mike A. Owens]* Added unit test for #3732 (currently fails due to Prototype #3877) [thx michal]* Fix span positioning for sliders with ranges not starting at 0, fixes #3731 [thx michal]* Make name option on Sortable.serialize work again, fixes #3873* Make dragging cancel only on ESC key, not on any key, fixes #3817* Fix Rakefile for V1.5.2*V1.5.2** Change version number to V1.5.2* Fix a wrong parameter in dragdrop.js, fixes #3555* Fix two typos in effects.js, fixes #3481 [thx jtolds]* Add assertEnumEqual for unit testing (from Prototype SVN trunk) [Sam Stephenson]* Add Sortable.sequence method to extract the current sequence of a Sortable as an array, fixes #3675 [thx sphivo]* Add limit option to effect queues to limit the maximum number of effects in a queue, new unit tests for scoped effect queues, fixes #3498 [thx Abdur-Rahman Advany]* Fix Element.collectTextNodesIgnoreClass to correctly filter child nodes, fixes #3380 [thx lam]* Fix a condition where OPTION elements could cause unwanted dragging on Draggables, fixes #3441 [thx tom]* Fix a crash because of an IE bug in Effect.SlideDown, fixes #3192 [thx Rob Mayhew]* Added experimental auto-scroll option to Draggables and Sortables, activate with scroll: 'id_of_scroll_container_element'. Note: needs testing, call syntax might change See test/functional/dragdrop3_test.html for usage/demo* Added activate method to Autocompleter that allows you to trigger the suggestions through other means than user input [DHH]*V1.5.1** Add select option to Autocompleter to optionally use textnodes from elements with a specific CSS class (see test/functional/ajax_autocompleter_test.html for usage)* In-place editor: add ok/cancel visibility options and onblur() submission, fixes #3233 [thx pulsation] Note: currently, blur form submission breaks the cancel link functionality, if enabled* Added Effect.toggle for slide, blind and appear/fade effects, fixes #2704 [thx Azad]* Added selective component loading to scriptaculous.js, see test/unit/loading_test.html for usage [thx David Z黮ke]* Added local/scoped effect queues [thx David Z黮ke]* New core effect Effect.Move that can do absolute/relative movement [thx David Z黮ke]* Make default effects options modifyable globally by setting Effect.DefaultOptions* Make Draggables recognize top/left CSS properties defined in an external stylesheet, fixes #3205 [thx ansonparker]* Fixed draggables starting to drag even if mouse button was released with no movement, [thx topfunky]* Updated the README to reflect final status*V1.5.0** Prepared for V1.5.0 final* Update lib/prototype.js to Prototype 1.4.0 final*V1.5.0_rc6** Update lib/prototype.js to Prototype 1.4.0_rc4* Fix Effect.SlideDown/SlideUp on Internet Explorer, includes a change to Effect.Scale, (should) fix #2962 and others, [thx wyldeone]* Make Draggables that are reverting cancel the default revert effect when they are dragged again while reverting, fixes #3188, [thx maverick]* Fix a problem with a wrong reference in Effect.Pulsate, fixes #3184, [thx cyx_]* Fix Sortable.findElements for XHTML in Gecko, fixes #3081, [thx fgnass]* Fix a problem with the slider getting NaN results when clicking directly on the track, fixes #3020, [thx rectalogic]* Fix a problem with Safari not doing sub-pixel rendering when setting opacity to 1 with Element.setOpacity* Fix slider to make handle width/height count for track length, fixes #3040, fixes #3017, [thx buggedcom]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -