old_sql 1.12.0 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/public/javascripts/old_sql/MochiKit-1.4.2/Changes +362 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/LICENSE.txt +69 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/MANIFEST +179 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/META.json +17 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Async.html +814 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Base.html +1703 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Color.html +755 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DOM.html +1197 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DateTime.html +168 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DragAndDrop.html +187 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Format.html +300 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Iter.html +524 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Logging.html +420 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/LoggingPane.html +142 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Position.html +38 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Selector.html +240 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Signal.html +508 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Sortable.html +244 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Style.html +385 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/VersionHistory.html +384 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Visual.html +1161 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/index.html +447 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/js/toc.js +113 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Async.rst +767 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Base.rst +1445 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Color.rst +651 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DOM.rst +1143 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DateTime.rst +145 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DragAndDrop.rst +197 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Format.rst +258 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Iter.rst +454 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Logging.rst +348 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/LoggingPane.rst +128 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Position.rst +26 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Selector.rst +203 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Signal.rst +498 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Sortable.rst +186 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Style.rst +353 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/VersionHistory.rst +362 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Visual.rst +895 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/index.rst +83 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/ajax_tables.css +69 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/ajax_tables.js +401 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/domains.json +10 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/domains.xml +40 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/index.html +96 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/color_wheel.css +4 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/color_wheel.js +95 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/index.html +31 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/dnd_sortable.css +23 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/dropmarker.png +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/icon.png +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/index.html +54 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable2_test.html +150 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable3_test.html +42 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable4_test.html +90 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable5_test.html +29 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable_test.html +38 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable_tree_test.html +189 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/draggable.css +28 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/draggable.js +73 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/index.html +38 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_bigslide.html +36 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_blind.html +65 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_blindslide.html +31 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_combi.css +18 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_fadeappear.html +61 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_grow_shrink.html +38 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_onload.html +67 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_queue.html +67 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_queue_limit.html +30 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_scroll.html +483 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_slide.html +62 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/full.html +71 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/icon.png +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/index.html +150 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/index.html +88 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/interpreter.css +54 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/interpreter.js +373 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/index.html +78 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/key_events.css +5 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/key_events.js +85 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/index.html +46 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/logging_pane.css +78 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/logging_pane.js +11 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/index.html +74 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/mochiregexp.css +73 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/mochiregexp.js +125 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/index.html +88 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/mouse_events.css +17 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/mouse_events.js +59 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/index.html +28 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/rounded_corners.css +3 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/rounded_corners.js +19 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_boxes.html +45 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_full.html +119 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_ghost.html +40 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_hoverclass.html +43 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_scroll.html +91 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_snap.html +54 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/index.html +93 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/simple_dnd.css +64 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/index.html +71 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/sortable_tables.css +66 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/sortable_tables.js +203 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/SyntaxHighlighter.css +177 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/Tests.html +339 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushCSharp.js +30 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushDelphi.js +31 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushJScript.js +22 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushPhp.js +23 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushPython.js +71 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushSql.js +40 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushVb.js +29 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushXml.js +61 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shCore.js +622 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.css +1 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.html +19 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.js +70 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/bg_docheader.gif +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/g_bullet.gif +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/g_logo_doc.gif +0 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/css/documentation.css +130 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/include/css/general.css +48 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Async.js +682 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Base.js +1489 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Color.js +863 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DOM.js +1256 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DateTime.js +222 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DragAndDrop.js +793 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Format.js +304 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Iter.js +844 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Logging.js +315 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/LoggingPane.js +353 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/MochiKit.js +188 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/MockDOM.js +115 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Position.js +236 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Selector.js +415 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Signal.js +897 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Sortable.js +589 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Style.js +594 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Test.js +162 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Visual.js +2026 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/__package__.js +18 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/MochiKit.js +7829 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/__package__.js +6 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/customize.html +251 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/FakeJSAN.js +40 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/SimpleTest.js +381 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/TestRunner.js +159 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/test.css +28 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/cli.js +6 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/index.html +25 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/standalone.js +16 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Base.js +577 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Color.js +137 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_DateTime.js +52 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_DragAndDrop.js +30 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Format.js +89 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Iter.js +186 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Logging.js +88 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Async.html +408 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Async.json +1 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Base.html +34 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Color.html +84 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DOM-Safari.html +48 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DOM.html +363 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DateTime.html +39 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DragAndDrop.html +54 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Format.html +39 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Iter.html +38 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-JSAN.html +32 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Logging.html +40 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-MochiKit.html +18 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Selector.html +295 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Signal.html +43 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Style.html +223 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Visual.html +197 -0
- data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Signal.js +481 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/COPYING +28 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Base.js +406 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Canvas.js +683 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/EasyPlot.js +161 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Layout.js +756 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/PlotKit.js +151 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/PlotKit_Packed.js +2177 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SVG.js +705 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SweetCanvas.js +348 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SweetSVG.js +247 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/dummy.svg +9 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/excanvas.js +723 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/README +1 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/MochiKitAdditions.html +2 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/MochiKitAdditions.txt +2 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Base.html +302 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Base.txt +139 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Canvas.html +172 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Canvas.txt +81 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.EasyPlot.html +155 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.EasyPlot.txt +50 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Layout.html +428 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Layout.txt +330 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.QuickStart.html +368 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.QuickStart.txt +256 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Renderer.html +436 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Renderer.txt +299 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SVG.html +159 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SVG.txt +64 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetCanvas.html +131 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetCanvas.txt +34 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetSVG.html +131 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetSVG.txt +34 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.html +334 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.txt +151 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/SVGCanvasCompat.html +304 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/SVGCanvasCompat.txt +144 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/barsample.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/black.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/blue.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/cyan.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/doc.css +62 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/generate.py +37 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/green.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/orange.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/piesample.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/purple.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/doc/red.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/scripts/custom_rhino.jar +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/scripts/pack.py +58 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/axis.html +31 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/basic.html +25 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/basic.js +143 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/debug.html +56 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo-svg.html +58 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo-svg.js +133 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo.html +57 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo.js +136 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/dynamic.html +161 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/firefox.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/konqueror.png +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/mozilla.ico +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/msie.gif +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/opera.ico +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/safari.gif +0 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/labels-img.html +38 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/labels.html +43 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/prototype_compat.html +28 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-easy.html +29 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-horiz.html +53 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-neg.html +29 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-svg.html +61 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart.html +57 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/sample.txt +6 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg-sweet.html +29 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg-sweet.js +141 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg.html +26 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg.js +147 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/sweet.html +24 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/sweet.js +89 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/tests.css +66 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/testsvg.html +20 -0
- data/public/javascripts/old_sql/plotkit-0.9.1/tests/testsvg.js +31 -0
- metadata +264 -2
|
@@ -0,0 +1,498 @@
|
|
|
1
|
+
.. title:: MochiKit.Signal - Simple universal event handling
|
|
2
|
+
.. |---| unicode:: U+2014 .. em dash, trimming surrounding whitespace
|
|
3
|
+
:trim:
|
|
4
|
+
|
|
5
|
+
Name
|
|
6
|
+
====
|
|
7
|
+
|
|
8
|
+
MochiKit.Signal - Simple universal event handling
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
Synopsis
|
|
12
|
+
========
|
|
13
|
+
|
|
14
|
+
Signal for DOM events::
|
|
15
|
+
|
|
16
|
+
// DOM events are also signals. Connect freely! The functions will be
|
|
17
|
+
// called with the custom event as a parameter.
|
|
18
|
+
|
|
19
|
+
// calls myClicked.apply(getElement('myID'), [event])
|
|
20
|
+
connect('myID', 'onclick', myClicked);
|
|
21
|
+
|
|
22
|
+
// calls wasClicked.apply(myObject, [event])
|
|
23
|
+
connect('myID', 'onclick', myObject, wasClicked);
|
|
24
|
+
|
|
25
|
+
// calls myObject.wasClicked(event)
|
|
26
|
+
connect('myID', 'onclick', myObject, 'wasClicked');
|
|
27
|
+
|
|
28
|
+
// the event is normalized, no more e = e || window.event!
|
|
29
|
+
myObject.wasClicked = function(e) {
|
|
30
|
+
var crossBrowserCoordinates = e.mouse().page;
|
|
31
|
+
// e.mouse().page is a MochiKit.Style.Coordinates object
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
Signal for non-DOM events::
|
|
36
|
+
|
|
37
|
+
// otherObject.gotFlash() will be called when 'flash' signalled.
|
|
38
|
+
connect(myObject, 'flash', otherObject, 'gotFlash');
|
|
39
|
+
|
|
40
|
+
// gotBang.apply(otherObject, [...]) will be called when 'bang' signalled.
|
|
41
|
+
// You can access otherObject from within gotBang as 'this'.
|
|
42
|
+
connect(myObject, 'bang', otherObject, gotBang);
|
|
43
|
+
|
|
44
|
+
// myFunc.apply(myObject, [...]) will be called when 'flash' signalled.
|
|
45
|
+
// You can access myObject from within myFunc as 'this'.
|
|
46
|
+
var ident = connect(myObject, 'flash', myFunc);
|
|
47
|
+
|
|
48
|
+
// You may disconnect with the return value from connect
|
|
49
|
+
disconnect(ident);
|
|
50
|
+
|
|
51
|
+
// Signal can take parameters. These will be passed along to the
|
|
52
|
+
// connected functions.
|
|
53
|
+
signal(myObject, 'flash');
|
|
54
|
+
signal(myObject, 'bang', 'BANG!');
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
Description
|
|
58
|
+
===========
|
|
59
|
+
|
|
60
|
+
Event handling was never so easy!
|
|
61
|
+
|
|
62
|
+
This module takes care of all the hard work |---| figuring out which
|
|
63
|
+
event model to use, trying to retrieve the event object, and handling
|
|
64
|
+
your own internal events, as well as cleanup when the page is unloaded
|
|
65
|
+
to clean up IE's nasty memory leakage.
|
|
66
|
+
|
|
67
|
+
This event system is largely based on Qt's signal/slot system. Read
|
|
68
|
+
more on how that is handled and also how it is used in model/view
|
|
69
|
+
programming at: http://doc.trolltech.com/
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
Dependencies
|
|
73
|
+
============
|
|
74
|
+
|
|
75
|
+
- :mochiref:`MochiKit.Base`
|
|
76
|
+
- :mochiref:`MochiKit.DOM`
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
Overview
|
|
80
|
+
========
|
|
81
|
+
|
|
82
|
+
Using Signal for DOM Events
|
|
83
|
+
---------------------------
|
|
84
|
+
|
|
85
|
+
When using MochiKit.Signal, do not use the browser's native event
|
|
86
|
+
API. That means, no ``onclick="blah"``, no
|
|
87
|
+
``elem.addEventListener(...)``, and certainly no
|
|
88
|
+
``elem.attachEvent(...)``. This also means that
|
|
89
|
+
:mochiref:`MochiKit.DOM.addToCallStack` and
|
|
90
|
+
:mochiref:`MochiKit.DOM.addLoadEvent` should not be used in
|
|
91
|
+
combination with this module.
|
|
92
|
+
|
|
93
|
+
Signals for DOM objects are named with the ``'on'`` prefix, e.g.:
|
|
94
|
+
``'onclick'``, ``'onkeyup'``, etc.
|
|
95
|
+
|
|
96
|
+
When the signal fires, your slot will be called with one parameter,
|
|
97
|
+
the custom event object.
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
Custom Event Objects for DOM events
|
|
101
|
+
-----------------------------------
|
|
102
|
+
|
|
103
|
+
Signals triggered by DOM events are called with a custom event object
|
|
104
|
+
as a parameter. The custom event object presents a consistent view of
|
|
105
|
+
the event across all supported platforms and browsers, and provides
|
|
106
|
+
many conveniences not available even in a correct W3C implementation.
|
|
107
|
+
|
|
108
|
+
See the `DOM Custom Event Object Reference`_ for a detailed API
|
|
109
|
+
description of this object.
|
|
110
|
+
|
|
111
|
+
If you find that you're accessing the native event for any reason,
|
|
112
|
+
create a `new ticket`_ and we'll look into normalizing the behavior
|
|
113
|
+
you're looking for.
|
|
114
|
+
|
|
115
|
+
.. _`new ticket`: http://trac.mochikit.com/newticket
|
|
116
|
+
.. _`Safari bug 6595`: http://bugs.webkit.org/show_bug.cgi?id=6595
|
|
117
|
+
.. _`Safari bug 7790`: http://bugs.webkit.org/show_bug.cgi?id=7790
|
|
118
|
+
.. _`Safari bug 8707`: http://bugs.webkit.org/show_bug.cgi?id=8707
|
|
119
|
+
.. _`stopPropagation()`: http://developer.mozilla.org/en/docs/DOM:event.stopPropagation
|
|
120
|
+
.. _`preventDefault()`: http://developer.mozilla.org/en/docs/DOM:event.preventDefault
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
Memory Usage
|
|
124
|
+
------------
|
|
125
|
+
|
|
126
|
+
Any object that has connected slots (via :mochiref:`connect()`) is
|
|
127
|
+
referenced by the Signal mechanism until it is disconnected via
|
|
128
|
+
:mochiref:`disconnect()` or :mochiref:`disconnectAll()`.
|
|
129
|
+
|
|
130
|
+
Signal does not leak. It registers an ``'onunload'`` event that
|
|
131
|
+
disconnects all objects on the page when the browser leaves the
|
|
132
|
+
page. However, memory usage will grow during the page view for every
|
|
133
|
+
connection made until it is disconnected. Even if the DOM object is
|
|
134
|
+
removed from the document, it will still be referenced by Signal until
|
|
135
|
+
it is explicitly disconnected.
|
|
136
|
+
|
|
137
|
+
In order to conserve memory during the page view,
|
|
138
|
+
:mochiref:`disconnectAll()` any DOM elements that are about to be
|
|
139
|
+
removed from the document.
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
Synthesized Events
|
|
143
|
+
------------------
|
|
144
|
+
|
|
145
|
+
Certain events supported by MochiKit are not generated natively by all
|
|
146
|
+
browsers. MochiKit can synthesize these events even for non-supporting
|
|
147
|
+
browsers, however, by watching for related events and triggering the
|
|
148
|
+
appropriate signals at the right times.
|
|
149
|
+
|
|
150
|
+
These events include:
|
|
151
|
+
|
|
152
|
+
``onmouseenter``
|
|
153
|
+
|
|
154
|
+
Similar to ``'onmouseover'``, but does not "bubble" up to parent
|
|
155
|
+
nodes. Such bubbling is often a cause of confusion. On an
|
|
156
|
+
``'onmouseenter'`` event, you can be certain that the mouse has
|
|
157
|
+
left the node attached to the event.
|
|
158
|
+
|
|
159
|
+
*Availability:*
|
|
160
|
+
Available in MochiKit 1.4+
|
|
161
|
+
|
|
162
|
+
``onmouseleave``
|
|
163
|
+
|
|
164
|
+
Similar to ``'onmouseout'``, but does not "bubble" up to parent
|
|
165
|
+
nodes. This is the analog to ``'onmouseenter'``.
|
|
166
|
+
|
|
167
|
+
*Availability:*
|
|
168
|
+
Available in MochiKit 1.4+
|
|
169
|
+
|
|
170
|
+
``onmousewheel``
|
|
171
|
+
|
|
172
|
+
Not strictly synthesized, but named ``'DOMMouseScroll'`` in
|
|
173
|
+
Gecko-based browsers. MochiKit translates ``'onmousewheel'`` to
|
|
174
|
+
the corresponding event in these browsers.
|
|
175
|
+
|
|
176
|
+
*Availability:*
|
|
177
|
+
Available in MochiKit 1.4+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
Using Signal for non-DOM objects
|
|
181
|
+
--------------------------------
|
|
182
|
+
|
|
183
|
+
Signals are triggered with the :mochiref:`signal(src, 'signal', ...)`
|
|
184
|
+
function. Additional parameters passed to this are passed onto the
|
|
185
|
+
connected slots. Explicit signals are not required for DOM events.
|
|
186
|
+
|
|
187
|
+
Slots that are connected to a signal are called in the following
|
|
188
|
+
manner when that signal is signalled:
|
|
189
|
+
|
|
190
|
+
- If the slot was a single function, then it is called with ``this``
|
|
191
|
+
set to the object originating the signal with whatever parameters
|
|
192
|
+
it was signalled with.
|
|
193
|
+
|
|
194
|
+
- If the slot was an object and a function, then it is called with
|
|
195
|
+
``this`` set to the object, and with whatever parameters it was
|
|
196
|
+
signalled with.
|
|
197
|
+
|
|
198
|
+
- If the slot was an object and a string, then ``object[string]`` is
|
|
199
|
+
called with the parameters to the signal.
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
API Reference
|
|
203
|
+
=============
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
Signal API Reference
|
|
207
|
+
--------------------
|
|
208
|
+
|
|
209
|
+
:mochidef:`connect(src, signal, dest[, func])`:
|
|
210
|
+
|
|
211
|
+
Connects a signal to a slot, and return a unique identifier that
|
|
212
|
+
can be used to disconnect that signal.
|
|
213
|
+
|
|
214
|
+
``src`` is the object that has the signal. You may pass in a
|
|
215
|
+
string, in which case, it is interpreted as an id for an HTML
|
|
216
|
+
element.
|
|
217
|
+
|
|
218
|
+
``signal`` is a string that represents a signal name. If 'src' is
|
|
219
|
+
an HTML Element, ``window``, or the ``document``, then it can be
|
|
220
|
+
one of the 'on-XYZ' events. You must include the 'on' prefix, and
|
|
221
|
+
it must be all lower-case.
|
|
222
|
+
|
|
223
|
+
``dest`` and ``func`` describe the slot, or the action to take
|
|
224
|
+
when the signal is triggered.
|
|
225
|
+
|
|
226
|
+
- If ``dest`` is an object and ``func`` is a string, then
|
|
227
|
+
``dest[func].apply(dest, [...])`` will be called when the
|
|
228
|
+
signal is signalled.
|
|
229
|
+
|
|
230
|
+
- If ``dest`` is an object and ``func`` is a function, then
|
|
231
|
+
``func.apply(dest, [...])`` will be called when the signal
|
|
232
|
+
is signalled.
|
|
233
|
+
|
|
234
|
+
- If ``func`` is undefined and ``dest`` is a function, then
|
|
235
|
+
``dest.apply(src, [...])`` will be called when the signal is
|
|
236
|
+
signalled.
|
|
237
|
+
|
|
238
|
+
No other combinations are allowed and will raise an exception.
|
|
239
|
+
|
|
240
|
+
The return value can be passed to :mochiref:`disconnect` to
|
|
241
|
+
disconnect the signal.
|
|
242
|
+
|
|
243
|
+
In MochiKit 1.4+, if ``src`` is an object that has a ``__connect__``
|
|
244
|
+
method, then ``src.__connect__(ident, signal, objOrFunc, funcOrStr)``
|
|
245
|
+
will be called. The ``__connect__`` method is allowed to disconnect
|
|
246
|
+
the signal. DOM objects can not implement this feature.
|
|
247
|
+
|
|
248
|
+
*Availability*:
|
|
249
|
+
Available in MochiKit 1.3.1+
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
:mochidef:`disconnect(ident)`:
|
|
253
|
+
|
|
254
|
+
To disconnect a signal, pass its ident returned by
|
|
255
|
+
:mochiref:`connect()`. This is similar to how the browser's
|
|
256
|
+
``setTimeout`` and ``clearTimeout`` works.
|
|
257
|
+
|
|
258
|
+
In MochiKit 1.4+, if the signal source is an object that has a
|
|
259
|
+
``__disconnect__`` method, then
|
|
260
|
+
``src.__disconnect__(ident, signal, objOrFunc, funcOrStr)``
|
|
261
|
+
will be called. DOM objects can not implement this feature.
|
|
262
|
+
|
|
263
|
+
*Availability*:
|
|
264
|
+
Available in MochiKit 1.3.1+
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
:mochidef:`disconnectAll(src[, signal, ...])`:
|
|
268
|
+
|
|
269
|
+
Removes a set of signals from ``src``, similar to calling
|
|
270
|
+
:mochiref:`disconnect(ident)` for each one.
|
|
271
|
+
|
|
272
|
+
``disconnectAll(src)`` removes all signals from src.
|
|
273
|
+
|
|
274
|
+
``disconnectAll(src, 'onmousedown', 'mySignal')`` will remove all
|
|
275
|
+
``'onmousedown'`` and ``'mySignal'`` signals from src.
|
|
276
|
+
|
|
277
|
+
*Availability*:
|
|
278
|
+
Available in MochiKit 1.3.1+
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
:mochidef:`disconnectAllTo(dest[, func])`:
|
|
282
|
+
|
|
283
|
+
Removes a set of signals connected to ``dest``, similar to calling
|
|
284
|
+
:mochiref:`disconnect(ident)` for each one.
|
|
285
|
+
|
|
286
|
+
``disconnectAllTo(dest)`` removes all signals connected to dest.
|
|
287
|
+
|
|
288
|
+
``disconnectAllTo(dest, func)`` will remove all
|
|
289
|
+
signals connected to dest using func.
|
|
290
|
+
|
|
291
|
+
*Availability*:
|
|
292
|
+
Available in MochiKit 1.4+
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
:mochidef:`signal(src, signal, ...)`:
|
|
296
|
+
|
|
297
|
+
This will signal a signal, passing whatever additional parameters
|
|
298
|
+
on to the connected slots. ``src`` and ``signal`` are the same as
|
|
299
|
+
for :mochiref:`connect()`.
|
|
300
|
+
|
|
301
|
+
*Availability*:
|
|
302
|
+
Available in MochiKit 1.3.1+
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
DOM Custom Event Object Reference
|
|
306
|
+
---------------------------------
|
|
307
|
+
|
|
308
|
+
:mochidef:`event()`:
|
|
309
|
+
|
|
310
|
+
The native event produced by the browser. You should not need to
|
|
311
|
+
use this.
|
|
312
|
+
|
|
313
|
+
*Availability*:
|
|
314
|
+
Available in MochiKit 1.3.1+
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
:mochidef:`src()`:
|
|
318
|
+
|
|
319
|
+
The element that this signal is connected to.
|
|
320
|
+
|
|
321
|
+
*Availability*:
|
|
322
|
+
Available in MochiKit 1.3.1+
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
:mochidef:`type()`:
|
|
326
|
+
|
|
327
|
+
The event type (``'click'``, ``'mouseover'``, ``'keypress'``,
|
|
328
|
+
etc.) as a string. Does not include the ``'on'`` prefix.
|
|
329
|
+
|
|
330
|
+
*Availability*:
|
|
331
|
+
Available in MochiKit 1.3.1+
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
:mochidef:`target()`:
|
|
335
|
+
|
|
336
|
+
The element that triggered the event. This may be a child of
|
|
337
|
+
:mochiref:`src()`.
|
|
338
|
+
|
|
339
|
+
*Availability*:
|
|
340
|
+
Available in MochiKit 1.3.1+
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
:mochidef:`modifier()`:
|
|
344
|
+
|
|
345
|
+
Returns ``{shift, ctrl, meta, alt, any}``, where each property is
|
|
346
|
+
``true`` if its respective modifier key was pressed, ``false``
|
|
347
|
+
otherwise. ``any`` is ``true`` if any modifier is pressed,
|
|
348
|
+
``false`` otherwise.
|
|
349
|
+
|
|
350
|
+
*Availability*:
|
|
351
|
+
Available in MochiKit 1.3.1+
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
:mochidef:`stopPropagation()`:
|
|
355
|
+
|
|
356
|
+
Works like W3C's `stopPropagation()`_.
|
|
357
|
+
|
|
358
|
+
*Availability*:
|
|
359
|
+
Available in MochiKit 1.3.1+
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
:mochidef:`preventDefault()`:
|
|
363
|
+
|
|
364
|
+
Works like W3C's `preventDefault()`_.
|
|
365
|
+
|
|
366
|
+
*Availability*:
|
|
367
|
+
Available in MochiKit 1.3.1+
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
:mochidef:`stop()`:
|
|
371
|
+
|
|
372
|
+
Shortcut that calls ``stopPropagation()`` and
|
|
373
|
+
``preventDefault()``.
|
|
374
|
+
|
|
375
|
+
*Availability*:
|
|
376
|
+
Available in MochiKit 1.3.1+
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
:mochidef:`key()`:
|
|
380
|
+
|
|
381
|
+
Returns ``{code, string}``.
|
|
382
|
+
|
|
383
|
+
Use ``'onkeydown'`` and ``'onkeyup'`` handlers to detect control
|
|
384
|
+
characters such as ``'KEY_F1'``. Use the ``'onkeypress'``
|
|
385
|
+
handler to detect "printable" characters, such as ``'é'``.
|
|
386
|
+
|
|
387
|
+
When a user presses F1, in ``'onkeydown'`` and ``'onkeyup'`` this
|
|
388
|
+
method returns ``{code: 122, string: 'KEY_F1'}``. In
|
|
389
|
+
``'onkeypress'``, it returns ``{code: 0, string: ''}``.
|
|
390
|
+
|
|
391
|
+
If a user presses Shift+2 on a US keyboard, this method returns
|
|
392
|
+
``{code: 50, string: 'KEY_2'}`` in ``'onkeydown'`` and
|
|
393
|
+
``'onkeyup'``. In ``'onkeypress'``, it returns ``{code: 64,
|
|
394
|
+
string: '@'}``.
|
|
395
|
+
|
|
396
|
+
See ``_specialKeys`` in the source code for a comprehensive list
|
|
397
|
+
of control characters.
|
|
398
|
+
|
|
399
|
+
*Availability*:
|
|
400
|
+
Available in MochiKit 1.3.1+
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
:mochidef:`mouse()`:
|
|
404
|
+
|
|
405
|
+
Properties for ``'onmouse*'``, ``'onclick'``, ``'ondblclick'``,
|
|
406
|
+
and ``'oncontextmenu'``:
|
|
407
|
+
|
|
408
|
+
- ``page`` is a :mochiref:`MochiKit.Style.Coordinates` object
|
|
409
|
+
that represents the cursor position relative to the HTML
|
|
410
|
+
document. Equivalent to ``pageX`` and ``pageY`` in
|
|
411
|
+
Safari, Mozilla, and Opera.
|
|
412
|
+
|
|
413
|
+
- ``client`` is a :mochiref:`MochiKit.Style.Coordinates`
|
|
414
|
+
object that represents the cursor position relative to the
|
|
415
|
+
visible portion of the HTML document. Equivalent to
|
|
416
|
+
``clientX`` and ``clientY`` on all browsers. Current versions of
|
|
417
|
+
Safari incorrectly return clientX as relative to the canvas
|
|
418
|
+
instead of relative to the viewport (`Safari Bug 8707`_).
|
|
419
|
+
|
|
420
|
+
Properties for ``'onmouseup'``, ``'onmousedown'``, ``'onclick'``,
|
|
421
|
+
and ``'ondblclick'``:
|
|
422
|
+
|
|
423
|
+
- ``mouse().button`` returns ``{left, right, middle}`` where
|
|
424
|
+
each property is ``true`` if the mouse button was pressed,
|
|
425
|
+
``false`` otherwise.
|
|
426
|
+
|
|
427
|
+
Properties for ``'onmousewheel'``:
|
|
428
|
+
|
|
429
|
+
- ``mouse().wheel`` is a :mochiref:`MochiKit.Style.Coordinates`
|
|
430
|
+
object containing the scroll wheel offset. The number will be
|
|
431
|
+
positive when scrolling down (or to the right) and negative
|
|
432
|
+
when scrolling up (or to the left). Note that only Safari 3
|
|
433
|
+
currently supports horizontal scrolling. In other browsers,
|
|
434
|
+
the ``'y'`` component will contain the scroll offset for
|
|
435
|
+
both directions.
|
|
436
|
+
|
|
437
|
+
Known browser bugs:
|
|
438
|
+
|
|
439
|
+
- Current versions of Safari won't signal ``'ondblclick'``
|
|
440
|
+
when attached via ``connect()`` (`Safari Bug 7790`_).
|
|
441
|
+
|
|
442
|
+
- In Safari < 2.0.4, calling ``preventDefault()`` or ``stop()``
|
|
443
|
+
in ``'onclick'`` events signalled from ``<a>`` tags does not
|
|
444
|
+
prevent the browser from following those links.
|
|
445
|
+
|
|
446
|
+
- Mac browsers don't report right-click consistently. Firefox
|
|
447
|
+
signals the slot and sets ``modifier().ctrl`` to true,
|
|
448
|
+
Opera signals the slot and sets ``modifier().meta`` to
|
|
449
|
+
``true``, and Safari doesn't signal the slot at all
|
|
450
|
+
(`Safari Bug 6595`_).
|
|
451
|
+
|
|
452
|
+
To find a right-click in Safari, Firefox, and IE, you can
|
|
453
|
+
connect an element to ``'oncontextmenu'``. This doesn't
|
|
454
|
+
work in Opera.
|
|
455
|
+
|
|
456
|
+
*Availability*:
|
|
457
|
+
Available in MochiKit 1.3.1+
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
:mochidef:`relatedTarget()`:
|
|
461
|
+
|
|
462
|
+
Returns the document element that the mouse has moved to. This is
|
|
463
|
+
generated for ``'onmouseover'`` and ``'onmouseout'`` events.
|
|
464
|
+
|
|
465
|
+
*Availability*:
|
|
466
|
+
Available in MochiKit 1.3.1+
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
:mochidef:`confirmUnload(msg)`:
|
|
470
|
+
|
|
471
|
+
In browsers that support the ``'onbeforeunload'`` event (IE and
|
|
472
|
+
Firefox), calling this in the event handler will show a dialog box
|
|
473
|
+
that allows the user to confirm or cancel the navigation away from
|
|
474
|
+
the page.
|
|
475
|
+
|
|
476
|
+
*Availability*:
|
|
477
|
+
Available in MochiKit 1.4+
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
Authors
|
|
481
|
+
=======
|
|
482
|
+
|
|
483
|
+
- Jonathan Gardner <jgardner@jonathangardner.net>
|
|
484
|
+
- Beau Hartshorne <beau@hartshornesoftware.com>
|
|
485
|
+
- Bob Ippolito <bob@redivi.com>
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
Copyright
|
|
489
|
+
=========
|
|
490
|
+
|
|
491
|
+
Copyright 2006 Jonathan Gardner <jgardner@jonathangardner.net>, Beau
|
|
492
|
+
Hartshorne <beau@hartshornesoftware.com>, and Bob Ippolito
|
|
493
|
+
<bob@redivi.com>. This program is dual-licensed free software; you
|
|
494
|
+
can redistribute it and/or modify it under the terms of the `MIT
|
|
495
|
+
License`_ or the `Academic Free License v2.1`_.
|
|
496
|
+
|
|
497
|
+
.. _`MIT License`: http://www.opensource.org/licenses/mit-license.php
|
|
498
|
+
.. _`Academic Free License v2.1`: http://www.opensource.org/licenses/afl-2.1.php
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
.. title:: MochiKit.Sortable - sortable with drag and drop lists
|
|
2
|
+
|
|
3
|
+
Name
|
|
4
|
+
====
|
|
5
|
+
|
|
6
|
+
MochiKit.Sortable - sortable with drag and drop lists
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Synopsis
|
|
10
|
+
========
|
|
11
|
+
|
|
12
|
+
::
|
|
13
|
+
|
|
14
|
+
<ul id="dnd_sortable">
|
|
15
|
+
<li>mochibot.com</li>
|
|
16
|
+
<li>pythonmac.org</li>
|
|
17
|
+
<li>undefined.org</li>
|
|
18
|
+
<li>python.org</li>
|
|
19
|
+
</ul>
|
|
20
|
+
<script type="text/javascript">
|
|
21
|
+
MochiKit.Sortable.Sortable.create('dnd_sortable');
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
Description
|
|
26
|
+
===========
|
|
27
|
+
|
|
28
|
+
MochiKit.Sortable add a new Sortable object to manipulate easily
|
|
29
|
+
drag&drop in lists.
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
Dependencies
|
|
33
|
+
============
|
|
34
|
+
|
|
35
|
+
- :mochiref:`MochiKit.Base`
|
|
36
|
+
- :mochiref:`MochiKit.Iter`
|
|
37
|
+
- :mochiref:`MochiKit.DOM`
|
|
38
|
+
- :mochiref:`MochiKit.Color`
|
|
39
|
+
- :mochiref:`MochiKit.Visual`
|
|
40
|
+
- :mochiref:`MochiKit.Signal`
|
|
41
|
+
- :mochiref:`MochiKit.DragAndDrop`
|
|
42
|
+
|
|
43
|
+
Overview
|
|
44
|
+
========
|
|
45
|
+
|
|
46
|
+
MochiKit.Sortable mainly contains the Sortable object offering
|
|
47
|
+
facilities to manipulate a list and drag its items to reorder it. It
|
|
48
|
+
can also be serialized for being send to server. It is ported from
|
|
49
|
+
Scriptaculous_.
|
|
50
|
+
|
|
51
|
+
.. _Scriptaculous: http://script.aculo.us
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
API Reference
|
|
55
|
+
=============
|
|
56
|
+
|
|
57
|
+
Objects defined
|
|
58
|
+
---------------
|
|
59
|
+
|
|
60
|
+
:mochidef:`SortableObserver`:
|
|
61
|
+
|
|
62
|
+
Observer for DragAndDrop object. You normally don't have to access
|
|
63
|
+
this, only for customization purpose.
|
|
64
|
+
|
|
65
|
+
*Availability*:
|
|
66
|
+
Available in MochiKit 1.4+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
:mochidef:`Sortable.create(element [, options])`:
|
|
70
|
+
|
|
71
|
+
Create a new Sortable. Usually you'll call it with a UL element,
|
|
72
|
+
but it can be customized with options to use something else.
|
|
73
|
+
|
|
74
|
+
You have the following options:
|
|
75
|
+
|
|
76
|
+
================= ==================
|
|
77
|
+
element element
|
|
78
|
+
tag 'li'
|
|
79
|
+
dropOnEmpty false
|
|
80
|
+
overlap 'vertical'
|
|
81
|
+
constraint 'vertical'
|
|
82
|
+
containment element
|
|
83
|
+
handle false
|
|
84
|
+
only false
|
|
85
|
+
hoverclass null
|
|
86
|
+
ghosting false
|
|
87
|
+
scroll false
|
|
88
|
+
scrollSensitivity 20
|
|
89
|
+
scrollSpeed 15
|
|
90
|
+
format /^[^_]*_(.*)$/
|
|
91
|
+
onChange MochiKit.Base.noop
|
|
92
|
+
onUpdate MochiKit.Base.noop
|
|
93
|
+
tree false
|
|
94
|
+
treeTag 'ul'
|
|
95
|
+
================= ==================
|
|
96
|
+
|
|
97
|
+
``tag``:
|
|
98
|
+
Name of the tag used to make the draggable elements. It matches all
|
|
99
|
+
the childNodes of the Sortable element with this tag.
|
|
100
|
+
|
|
101
|
+
``only``:
|
|
102
|
+
Class or array of classes used to filter the children, combined with
|
|
103
|
+
the tag criteria.
|
|
104
|
+
|
|
105
|
+
``format``:
|
|
106
|
+
Regular expression which serves as a match filter for serialization,
|
|
107
|
+
on children' ids. For example, with the default value, you'll get
|
|
108
|
+
['1', '2', '3', '4'] with ids ['sort_1', 'sort_2', 'sort_3', 'sort_4'].
|
|
109
|
+
|
|
110
|
+
``onChange``:
|
|
111
|
+
Callback called when an element moves between others in the Sortable.
|
|
112
|
+
It's called for *each* movements, even if you don't release the mouse.
|
|
113
|
+
|
|
114
|
+
``onUpdate``:
|
|
115
|
+
Callback called when the order changes in the Sortable. It's called
|
|
116
|
+
only if the Sortable is modified, after you dropped an element.
|
|
117
|
+
|
|
118
|
+
``tree``:
|
|
119
|
+
Option for creating a Sortable tree. It's an experimental
|
|
120
|
+
setting, that can be very slow even with a few elements. You
|
|
121
|
+
can customize its behaviour with the ``treeTag`` option, that
|
|
122
|
+
defines the node used to make branches in your tree (that
|
|
123
|
+
contains leaves).
|
|
124
|
+
|
|
125
|
+
Other options are passed to the Draggables and Droppables objects created.
|
|
126
|
+
Refer to :mochiref:`MochiKit.DragAndDrop` for more information.
|
|
127
|
+
|
|
128
|
+
A bug with Internet Explorer rendering engine can cause a problem with the
|
|
129
|
+
default effect used on start (the symptom being that the rows vanish).
|
|
130
|
+
If you encounter this problem, pass :mochiref:`MochiKit.Base.noop`
|
|
131
|
+
as the ``starteffect`` option.
|
|
132
|
+
|
|
133
|
+
*Availability*:
|
|
134
|
+
Available in MochiKit 1.4+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
:mochidef:`Sortable.destroy(element)`:
|
|
138
|
+
|
|
139
|
+
Destroy a previously created sortable. It prevents further use of
|
|
140
|
+
the Sortable functionnality on the element, unless recreated.
|
|
141
|
+
|
|
142
|
+
*Availability*:
|
|
143
|
+
Available in MochiKit 1.4+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
:mochidef:`Sortable.serialize(element [, options])`:
|
|
147
|
+
|
|
148
|
+
Serialize the content of a Sortable. Useful to send this content
|
|
149
|
+
through a XMLHTTPRequest. The options overrides the ones of the Sortable
|
|
150
|
+
only for the serialization.
|
|
151
|
+
|
|
152
|
+
====== ==========================================
|
|
153
|
+
tag tag from the Sortable
|
|
154
|
+
only only from the Sortable
|
|
155
|
+
name id of the element
|
|
156
|
+
format format of the Sortable or /^[^_]*_(.*)$
|
|
157
|
+
====== ==========================================
|
|
158
|
+
|
|
159
|
+
*Availability*:
|
|
160
|
+
Available in MochiKit 1.4+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
Authors
|
|
164
|
+
=======
|
|
165
|
+
|
|
166
|
+
- Thomas Herve <therve@gmail.com>
|
|
167
|
+
- Bob Ippolito <bob@redivi.com>
|
|
168
|
+
- Originally adapted from Script.aculo.us <http://script.aculo.us/>
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
Copyright
|
|
172
|
+
=========
|
|
173
|
+
|
|
174
|
+
Copyright 2005 Bob Ippolito <bob@redivi.com>. This program is
|
|
175
|
+
dual-licensed free software; you can redistribute it and/or modify it
|
|
176
|
+
under the terms of the `MIT License`_ or the `Academic Free License
|
|
177
|
+
v2.1`_.
|
|
178
|
+
|
|
179
|
+
.. _`MIT License`: http://www.opensource.org/licenses/mit-license.php
|
|
180
|
+
.. _`Academic Free License v2.1`: http://www.opensource.org/licenses/afl-2.1.php
|
|
181
|
+
|
|
182
|
+
Portions adapted from `Scriptaculous`_ are available under the terms
|
|
183
|
+
of the `MIT License`_.
|
|
184
|
+
|
|
185
|
+
.. _`Apache License, Version 2.0`: http://www.apache.org/licenses/LICENSE-2.0.html
|
|
186
|
+
|