javascriptmvc 3.0.0.pre15
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +21 -0
- data/README.markdown +15 -0
- data/Rakefile +17 -0
- data/VERSION +1 -0
- data/bin/jmvc-build +4 -0
- data/bin/jmvc-gen +4 -0
- data/bin/jmvc-get +4 -0
- data/bin/jmvc-init +4 -0
- data/bin/jmvc-update +4 -0
- data/lib/javascriptmvc.rb +97 -0
- data/lib/javascriptmvc/documentjs/README +0 -0
- data/lib/javascriptmvc/documentjs/add.js +76 -0
- data/lib/javascriptmvc/documentjs/application.js +285 -0
- data/lib/javascriptmvc/documentjs/attribute.js +61 -0
- data/lib/javascriptmvc/documentjs/baseclass.js +537 -0
- data/lib/javascriptmvc/documentjs/class.js +141 -0
- data/lib/javascriptmvc/documentjs/constructor.js +145 -0
- data/lib/javascriptmvc/documentjs/directives.js +394 -0
- data/lib/javascriptmvc/documentjs/distance.js +49 -0
- data/lib/javascriptmvc/documentjs/document +21 -0
- data/lib/javascriptmvc/documentjs/documentjs.js +76 -0
- data/lib/javascriptmvc/documentjs/file.js +55 -0
- data/lib/javascriptmvc/documentjs/function.js +112 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/close.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/download.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/fav-off.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/fav-on.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/favicon.ico +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/logo.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/pre.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/ui-icons_222222_256x240.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/ui-icons_2e83ff_256x240.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/ui-icons_454545_256x240.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/ui-icons_888888_256x240.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/images/video.png +0 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/production.js +552 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/style.css +354 -0
- data/lib/javascriptmvc/documentjs/jmvcdoc/summary.ejs +134 -0
- data/lib/javascriptmvc/documentjs/json.js +172 -0
- data/lib/javascriptmvc/documentjs/page.js +107 -0
- data/lib/javascriptmvc/documentjs/pair.js +302 -0
- data/lib/javascriptmvc/documentjs/prototype.js +13 -0
- data/lib/javascriptmvc/documentjs/scripts/build.js +6 -0
- data/lib/javascriptmvc/documentjs/static.js +25 -0
- data/lib/javascriptmvc/documentjs/test/docs/Something.json +1 -0
- data/lib/javascriptmvc/documentjs/test/docs/searchData.json +1 -0
- data/lib/javascriptmvc/documentjs/test/something.js +8 -0
- data/lib/javascriptmvc/documentjs/test/test.html +6 -0
- data/lib/javascriptmvc/documentjs/test_doc.html +1 -0
- data/lib/javascriptmvc/documentjs/update +5 -0
- data/lib/javascriptmvc/funcunit/README +17 -0
- data/lib/javascriptmvc/funcunit/autosuggest/auto_suggest.js +495 -0
- data/lib/javascriptmvc/funcunit/autosuggest/autosuggest.css +24 -0
- data/lib/javascriptmvc/funcunit/autosuggest/autosuggest.html +26 -0
- data/lib/javascriptmvc/funcunit/autosuggest/autosuggest.js +17 -0
- data/lib/javascriptmvc/funcunit/autosuggest/autosuggest_test.js +14 -0
- data/lib/javascriptmvc/funcunit/autosuggest/funcunit.html +15 -0
- data/lib/javascriptmvc/funcunit/build.js +54 -0
- data/lib/javascriptmvc/funcunit/drivers/selenium.js +129 -0
- data/lib/javascriptmvc/funcunit/drivers/standard.js +169 -0
- data/lib/javascriptmvc/funcunit/envjs +13 -0
- data/lib/javascriptmvc/funcunit/envjs.bat +28 -0
- data/lib/javascriptmvc/funcunit/funcunit.html +20 -0
- data/lib/javascriptmvc/funcunit/funcunit.js +1509 -0
- data/lib/javascriptmvc/funcunit/java/selenium-java-client-driver.jar +0 -0
- data/lib/javascriptmvc/funcunit/java/selenium-server.jar +0 -0
- data/lib/javascriptmvc/funcunit/qunit.html +22 -0
- data/lib/javascriptmvc/funcunit/qunit/qunit.css +119 -0
- data/lib/javascriptmvc/funcunit/qunit/qunit.js +1124 -0
- data/lib/javascriptmvc/funcunit/qunit/rhino/rhino.js +24 -0
- data/lib/javascriptmvc/funcunit/qunit/test/qunit.html +18 -0
- data/lib/javascriptmvc/funcunit/qunit/test/test.js +7 -0
- data/lib/javascriptmvc/funcunit/resources/funcunit.js +31 -0
- data/lib/javascriptmvc/funcunit/resources/jquery.js +6378 -0
- data/lib/javascriptmvc/funcunit/resources/json.js +201 -0
- data/lib/javascriptmvc/funcunit/resources/selenium_start.js +43 -0
- data/lib/javascriptmvc/funcunit/scripts/run.js +36 -0
- data/lib/javascriptmvc/funcunit/scripts/test.js +55 -0
- data/lib/javascriptmvc/funcunit/settings.js +10 -0
- data/lib/javascriptmvc/funcunit/synthetic/browsers.js +151 -0
- data/lib/javascriptmvc/funcunit/synthetic/demo.html +150 -0
- data/lib/javascriptmvc/funcunit/synthetic/demo/record.js +254 -0
- data/lib/javascriptmvc/funcunit/synthetic/drag/drag.html +41 -0
- data/lib/javascriptmvc/funcunit/synthetic/drag/drag.js +268 -0
- data/lib/javascriptmvc/funcunit/synthetic/drag/qunit.html +20 -0
- data/lib/javascriptmvc/funcunit/synthetic/drag/test/qunit/drag_test.js +195 -0
- data/lib/javascriptmvc/funcunit/synthetic/drag/test/qunit/qunit.js +7 -0
- data/lib/javascriptmvc/funcunit/synthetic/key.js +832 -0
- data/lib/javascriptmvc/funcunit/synthetic/mouse.js +291 -0
- data/lib/javascriptmvc/funcunit/synthetic/qunit.html +22 -0
- data/lib/javascriptmvc/funcunit/synthetic/recorder.html +303 -0
- data/lib/javascriptmvc/funcunit/synthetic/synthetic.html +85 -0
- data/lib/javascriptmvc/funcunit/synthetic/synthetic.js +796 -0
- data/lib/javascriptmvc/funcunit/synthetic/test/qunit/key_test.js +391 -0
- data/lib/javascriptmvc/funcunit/synthetic/test/qunit/mouse_test.js +233 -0
- data/lib/javascriptmvc/funcunit/synthetic/test/qunit/qunit.js +6 -0
- data/lib/javascriptmvc/funcunit/synthetic/test/qunit/synthetic_test.js +91 -0
- data/lib/javascriptmvc/funcunit/synthetic/test/submit.html +29 -0
- data/lib/javascriptmvc/funcunit/synthetic/test/submitted.html +3 -0
- data/lib/javascriptmvc/funcunit/template.html +18 -0
- data/lib/javascriptmvc/funcunit/test/drag.html +63 -0
- data/lib/javascriptmvc/funcunit/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/funcunit/test/funcunit/funcunit_test.js +87 -0
- data/lib/javascriptmvc/funcunit/test/funcunit/open_test.js +28 -0
- data/lib/javascriptmvc/funcunit/test/funcunit/protodrag_test.js +13 -0
- data/lib/javascriptmvc/funcunit/test/funcunit/syn_test.js +41 -0
- data/lib/javascriptmvc/funcunit/test/jquery.event.drag.js +801 -0
- data/lib/javascriptmvc/funcunit/test/jquery.event.drop.js +439 -0
- data/lib/javascriptmvc/funcunit/test/jquery.js +6360 -0
- data/lib/javascriptmvc/funcunit/test/myapp.html +103 -0
- data/lib/javascriptmvc/funcunit/test/myotherapp.html +15 -0
- data/lib/javascriptmvc/funcunit/test/protodrag/dragdrop.js +974 -0
- data/lib/javascriptmvc/funcunit/test/protodrag/effects.js +1123 -0
- data/lib/javascriptmvc/funcunit/test/protodrag/funcunit_test.js +20 -0
- data/lib/javascriptmvc/funcunit/test/protodrag/myapp.html +63 -0
- data/lib/javascriptmvc/funcunit/test/protodrag/prototype.js +4874 -0
- data/lib/javascriptmvc/funcunit/test/protodrag/scriptaculous.js +68 -0
- data/lib/javascriptmvc/funcunit/update +5 -0
- data/lib/javascriptmvc/jquery/README +24 -0
- data/lib/javascriptmvc/jquery/build.js +73 -0
- data/lib/javascriptmvc/jquery/class/class.html +109 -0
- data/lib/javascriptmvc/jquery/class/class.js +627 -0
- data/lib/javascriptmvc/jquery/class/qunit.html +15 -0
- data/lib/javascriptmvc/jquery/class/test/qunit/class_test.js +146 -0
- data/lib/javascriptmvc/jquery/class/test/qunit/qunit.js +5 -0
- data/lib/javascriptmvc/jquery/class/test/qunit/test.html +20 -0
- data/lib/javascriptmvc/jquery/controller/controller.html +89 -0
- data/lib/javascriptmvc/jquery/controller/controller.js +735 -0
- data/lib/javascriptmvc/jquery/controller/history/history.html +44 -0
- data/lib/javascriptmvc/jquery/controller/history/history.js +177 -0
- data/lib/javascriptmvc/jquery/controller/qunit.html +21 -0
- data/lib/javascriptmvc/jquery/controller/subscribe/funcunit.html +21 -0
- data/lib/javascriptmvc/jquery/controller/subscribe/scripts/compress.js +6 -0
- data/lib/javascriptmvc/jquery/controller/subscribe/scripts/docs.js +6 -0
- data/lib/javascriptmvc/jquery/controller/subscribe/subscribe.html +56 -0
- data/lib/javascriptmvc/jquery/controller/subscribe/subscribe.js +27 -0
- data/lib/javascriptmvc/jquery/controller/subscribe/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/jquery/controller/subscribe/test/funcunit/run.js +10 -0
- data/lib/javascriptmvc/jquery/controller/subscribe/test/funcunit/subscribe_test.js +11 -0
- data/lib/javascriptmvc/jquery/controller/subscribe/test/qunit/qunit.html +21 -0
- data/lib/javascriptmvc/jquery/controller/subscribe/test/qunit/qunit.js +9 -0
- data/lib/javascriptmvc/jquery/controller/subscribe/test/qunit/run.js +2 -0
- data/lib/javascriptmvc/jquery/controller/subscribe/test/qunit/subscribe_test.js +4 -0
- data/lib/javascriptmvc/jquery/controller/test/qunit/controller_test.js +170 -0
- data/lib/javascriptmvc/jquery/controller/test/qunit/qunit.js +9 -0
- data/lib/javascriptmvc/jquery/controller/view/qunit.html +21 -0
- data/lib/javascriptmvc/jquery/controller/view/test/qunit/controller_view_test.js +15 -0
- data/lib/javascriptmvc/jquery/controller/view/test/qunit/qunit.js +6 -0
- data/lib/javascriptmvc/jquery/controller/view/test/qunit/views/init.micro +1 -0
- data/lib/javascriptmvc/jquery/controller/view/view.js +102 -0
- data/lib/javascriptmvc/jquery/dom/closest/closest.html +23 -0
- data/lib/javascriptmvc/jquery/dom/closest/closest.js +47 -0
- data/lib/javascriptmvc/jquery/dom/closest/funcunit.html +20 -0
- data/lib/javascriptmvc/jquery/dom/closest/qunit.html +22 -0
- data/lib/javascriptmvc/jquery/dom/closest/scripts/compress.js +3 -0
- data/lib/javascriptmvc/jquery/dom/closest/scripts/doc.js +4 -0
- data/lib/javascriptmvc/jquery/dom/closest/scripts/test.js +55 -0
- data/lib/javascriptmvc/jquery/dom/closest/settings.js +40 -0
- data/lib/javascriptmvc/jquery/dom/closest/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/jquery/dom/closest/test/funcunit/tests/basic.js +11 -0
- data/lib/javascriptmvc/jquery/dom/closest/test/qunit/qunit.js +4 -0
- data/lib/javascriptmvc/jquery/dom/closest/test/qunit/tests/basic.js +4 -0
- data/lib/javascriptmvc/jquery/dom/compare/compare.html +88 -0
- data/lib/javascriptmvc/jquery/dom/compare/compare.js +67 -0
- data/lib/javascriptmvc/jquery/dom/compare/qunit.html +20 -0
- data/lib/javascriptmvc/jquery/dom/compare/test/qunit/compare_test.js +19 -0
- data/lib/javascriptmvc/jquery/dom/compare/test/qunit/qunit.js +5 -0
- data/lib/javascriptmvc/jquery/dom/cookie/cookie.html +25 -0
- data/lib/javascriptmvc/jquery/dom/cookie/cookie.js +119 -0
- data/lib/javascriptmvc/jquery/dom/cookie/scripts/compress.js +6 -0
- data/lib/javascriptmvc/jquery/dom/cookie/scripts/doc.js +6 -0
- data/lib/javascriptmvc/jquery/dom/cookie/test/funcunit/cookie_test.js +11 -0
- data/lib/javascriptmvc/jquery/dom/cookie/test/funcunit/funcunit.html +21 -0
- data/lib/javascriptmvc/jquery/dom/cookie/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/jquery/dom/cookie/test/funcunit/run.js +10 -0
- data/lib/javascriptmvc/jquery/dom/cookie/test/qunit/cookie_test.js +4 -0
- data/lib/javascriptmvc/jquery/dom/cookie/test/qunit/qunit.html +21 -0
- data/lib/javascriptmvc/jquery/dom/cookie/test/qunit/qunit.js +9 -0
- data/lib/javascriptmvc/jquery/dom/cookie/test/qunit/run.js +2 -0
- data/lib/javascriptmvc/jquery/dom/cur_styles/cur_styles.html +71 -0
- data/lib/javascriptmvc/jquery/dom/cur_styles/cur_styles.js +120 -0
- data/lib/javascriptmvc/jquery/dom/cur_styles/qunit.html +22 -0
- data/lib/javascriptmvc/jquery/dom/cur_styles/test/qunit/curStyles.micro +3 -0
- data/lib/javascriptmvc/jquery/dom/cur_styles/test/qunit/cur_styles_test.js +22 -0
- data/lib/javascriptmvc/jquery/dom/cur_styles/test/qunit/outer.micro +0 -0
- data/lib/javascriptmvc/jquery/dom/cur_styles/test/qunit/qunit.js +4 -0
- data/lib/javascriptmvc/jquery/dom/dimensions/curstyles.html +22 -0
- data/lib/javascriptmvc/jquery/dom/dimensions/dimensions.html +132 -0
- data/lib/javascriptmvc/jquery/dom/dimensions/dimensions.js +140 -0
- data/lib/javascriptmvc/jquery/dom/dimensions/qunit.html +22 -0
- data/lib/javascriptmvc/jquery/dom/dimensions/test/qunit/curStyles.micro +3 -0
- data/lib/javascriptmvc/jquery/dom/dimensions/test/qunit/dimensions_test.js +8 -0
- data/lib/javascriptmvc/jquery/dom/dimensions/test/qunit/outer.micro +0 -0
- data/lib/javascriptmvc/jquery/dom/dimensions/test/qunit/qunit.js +4 -0
- data/lib/javascriptmvc/jquery/dom/dom.js +7 -0
- data/lib/javascriptmvc/jquery/dom/fixture/fixture.html +143 -0
- data/lib/javascriptmvc/jquery/dom/fixture/fixture.js +521 -0
- data/lib/javascriptmvc/jquery/dom/fixture/fixtures/messages.html +31 -0
- data/lib/javascriptmvc/jquery/dom/fixture/fixtures/test.json +3 -0
- data/lib/javascriptmvc/jquery/dom/fixture/qunit.html +22 -0
- data/lib/javascriptmvc/jquery/dom/fixture/test/qunit/fixture_test.js +50 -0
- data/lib/javascriptmvc/jquery/dom/fixture/test/qunit/qunit.js +4 -0
- data/lib/javascriptmvc/jquery/dom/form_params/form_params.html +57 -0
- data/lib/javascriptmvc/jquery/dom/form_params/form_params.js +106 -0
- data/lib/javascriptmvc/jquery/dom/form_params/qunit.html +22 -0
- data/lib/javascriptmvc/jquery/dom/form_params/test/qunit/basics.micro +27 -0
- data/lib/javascriptmvc/jquery/dom/form_params/test/qunit/checkbox.micro +20 -0
- data/lib/javascriptmvc/jquery/dom/form_params/test/qunit/form_params_test.js +43 -0
- data/lib/javascriptmvc/jquery/dom/form_params/test/qunit/qunit.js +4 -0
- data/lib/javascriptmvc/jquery/dom/form_params/test/qunit/truthy.micro +8 -0
- data/lib/javascriptmvc/jquery/dom/within/within.js +67 -0
- data/lib/javascriptmvc/jquery/error/background.png +0 -0
- data/lib/javascriptmvc/jquery/error/error.html +31 -0
- data/lib/javascriptmvc/jquery/error/error.js +227 -0
- data/lib/javascriptmvc/jquery/error/setup.js +4 -0
- data/lib/javascriptmvc/jquery/error/test/test.html +23 -0
- data/lib/javascriptmvc/jquery/error/test/test.js +4 -0
- data/lib/javascriptmvc/jquery/event/default/compress.js +7 -0
- data/lib/javascriptmvc/jquery/event/default/default.html +85 -0
- data/lib/javascriptmvc/jquery/event/default/default.js +193 -0
- data/lib/javascriptmvc/jquery/event/default/defaultjquery.html +117 -0
- data/lib/javascriptmvc/jquery/event/default/qunit.html +22 -0
- data/lib/javascriptmvc/jquery/event/default/test/qunit/default_test.js +104 -0
- data/lib/javascriptmvc/jquery/event/default/test/qunit/html.micro +8 -0
- data/lib/javascriptmvc/jquery/event/default/test/qunit/qunit.js +6 -0
- data/lib/javascriptmvc/jquery/event/default/test/qunit/run.js +2 -0
- data/lib/javascriptmvc/jquery/event/destroyed/destroyed.html +24 -0
- data/lib/javascriptmvc/jquery/event/destroyed/destroyed.js +40 -0
- data/lib/javascriptmvc/jquery/event/destroyed/destroyed_menu.html +96 -0
- data/lib/javascriptmvc/jquery/event/destroyed/qunit.html +21 -0
- data/lib/javascriptmvc/jquery/event/destroyed/test/qunit/destroyed_test.js +12 -0
- data/lib/javascriptmvc/jquery/event/destroyed/test/qunit/qunit.js +6 -0
- data/lib/javascriptmvc/jquery/event/drag/drag.html +105 -0
- data/lib/javascriptmvc/jquery/event/drag/drag.js +466 -0
- data/lib/javascriptmvc/jquery/event/drag/limit/limit.html +74 -0
- data/lib/javascriptmvc/jquery/event/drag/limit/limit.js +56 -0
- data/lib/javascriptmvc/jquery/event/drag/limit/scripts/compress.js +6 -0
- data/lib/javascriptmvc/jquery/event/drag/limit/scripts/doc.js +6 -0
- data/lib/javascriptmvc/jquery/event/drag/limit/test/funcunit/funcunit.html +21 -0
- data/lib/javascriptmvc/jquery/event/drag/limit/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/jquery/event/drag/limit/test/funcunit/limit_test.js +11 -0
- data/lib/javascriptmvc/jquery/event/drag/limit/test/funcunit/run.js +10 -0
- data/lib/javascriptmvc/jquery/event/drag/limit/test/qunit/limit_test.js +4 -0
- data/lib/javascriptmvc/jquery/event/drag/limit/test/qunit/qunit.html +21 -0
- data/lib/javascriptmvc/jquery/event/drag/limit/test/qunit/qunit.js +9 -0
- data/lib/javascriptmvc/jquery/event/drag/limit/test/qunit/run.js +2 -0
- data/lib/javascriptmvc/jquery/event/drag/qunit.html +16 -0
- data/lib/javascriptmvc/jquery/event/drag/scroll/scroll.js +120 -0
- data/lib/javascriptmvc/jquery/event/drag/test/qunit/drag_test.js +130 -0
- data/lib/javascriptmvc/jquery/event/drag/test/qunit/qunit.js +4 -0
- data/lib/javascriptmvc/jquery/event/drop/drop.html +74 -0
- data/lib/javascriptmvc/jquery/event/drop/drop.js +301 -0
- data/lib/javascriptmvc/jquery/event/event.js +6 -0
- data/lib/javascriptmvc/jquery/event/hashchange/hashchange.js +245 -0
- data/lib/javascriptmvc/jquery/event/hover/compress.js +7 -0
- data/lib/javascriptmvc/jquery/event/hover/hover.html +56 -0
- data/lib/javascriptmvc/jquery/event/hover/hover.js +219 -0
- data/lib/javascriptmvc/jquery/event/hover/qunit.html +16 -0
- data/lib/javascriptmvc/jquery/event/hover/test/qunit/hover_test.js +55 -0
- data/lib/javascriptmvc/jquery/event/hover/test/qunit/qunit.js +4 -0
- data/lib/javascriptmvc/jquery/event/livehack/compress.js +7 -0
- data/lib/javascriptmvc/jquery/event/livehack/funcunit.html +21 -0
- data/lib/javascriptmvc/jquery/event/livehack/livehack.html +25 -0
- data/lib/javascriptmvc/jquery/event/livehack/livehack.js +167 -0
- data/lib/javascriptmvc/jquery/event/offline/funcunit.html +20 -0
- data/lib/javascriptmvc/jquery/event/offline/offline.html +26 -0
- data/lib/javascriptmvc/jquery/event/offline/offline.js +36 -0
- data/lib/javascriptmvc/jquery/event/offline/qunit.html +22 -0
- data/lib/javascriptmvc/jquery/event/offline/scripts/compress.js +3 -0
- data/lib/javascriptmvc/jquery/event/offline/scripts/doc.js +4 -0
- data/lib/javascriptmvc/jquery/event/offline/settings.js +41 -0
- data/lib/javascriptmvc/jquery/event/offline/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/jquery/event/offline/test/funcunit/tests/basic.js +11 -0
- data/lib/javascriptmvc/jquery/event/offline/test/qunit/qunit.js +4 -0
- data/lib/javascriptmvc/jquery/event/offline/test/qunit/tests/basic.js +4 -0
- data/lib/javascriptmvc/jquery/event/resize/funcunit.html +20 -0
- data/lib/javascriptmvc/jquery/event/resize/qunit.html +22 -0
- data/lib/javascriptmvc/jquery/event/resize/resize.html +23 -0
- data/lib/javascriptmvc/jquery/event/resize/resize.js +50 -0
- data/lib/javascriptmvc/jquery/event/resize/scripts/compress.js +3 -0
- data/lib/javascriptmvc/jquery/event/resize/scripts/doc.js +4 -0
- data/lib/javascriptmvc/jquery/event/resize/scripts/test.js +55 -0
- data/lib/javascriptmvc/jquery/event/resize/settings.js +40 -0
- data/lib/javascriptmvc/jquery/event/resize/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/jquery/event/resize/test/funcunit/tests/basic.js +11 -0
- data/lib/javascriptmvc/jquery/event/resize/test/qunit/qunit.js +4 -0
- data/lib/javascriptmvc/jquery/event/resize/test/qunit/tests/basic.js +4 -0
- data/lib/javascriptmvc/jquery/event/select/scripts/compress.js +6 -0
- data/lib/javascriptmvc/jquery/event/select/scripts/doc.js +6 -0
- data/lib/javascriptmvc/jquery/event/select/select.html +63 -0
- data/lib/javascriptmvc/jquery/event/select/select.js +65 -0
- data/lib/javascriptmvc/jquery/event/select/test/funcunit/funcunit.html +21 -0
- data/lib/javascriptmvc/jquery/event/select/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/jquery/event/select/test/funcunit/run.js +10 -0
- data/lib/javascriptmvc/jquery/event/select/test/funcunit/select_test.js +11 -0
- data/lib/javascriptmvc/jquery/event/select/test/qunit/qunit.html +21 -0
- data/lib/javascriptmvc/jquery/event/select/test/qunit/qunit.js +5 -0
- data/lib/javascriptmvc/jquery/event/select/test/qunit/run.js +2 -0
- data/lib/javascriptmvc/jquery/event/select/test/qunit/select_test.js +4 -0
- data/lib/javascriptmvc/jquery/generate/app +23 -0
- data/lib/javascriptmvc/jquery/generate/controller +21 -0
- data/lib/javascriptmvc/jquery/generate/model +26 -0
- data/lib/javascriptmvc/jquery/generate/page +20 -0
- data/lib/javascriptmvc/jquery/generate/plugin +20 -0
- data/lib/javascriptmvc/jquery/generate/scaffold +23 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/(application_name).css.ejs +4 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/(application_name).html.ejs +23 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/(application_name).js.ejs +21 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/controllers/.ignore +0 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/docs/.ignore +0 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/fixtures/.ignore +0 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/funcunit.html.ejs +15 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/models/.ignore +0 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/qunit.html.ejs +20 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/resources/.ignore +0 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/scripts/build.js.ejs +6 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/scripts/clean.js.ejs +6 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/scripts/docs.js.ejs +4 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/test/funcunit/(application_name)_test.js.ejs +9 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/test/funcunit/funcunit.js.ejs +3 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/test/qunit/(application_name)_test.js.ejs +5 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/test/qunit/qunit.js.ejs +3 -0
- data/lib/javascriptmvc/jquery/generate/templates/app/views/.ignore +0 -0
- data/lib/javascriptmvc/jquery/generate/templates/controller/controllers/(underscore)_controller.js.ejs +12 -0
- data/lib/javascriptmvc/jquery/generate/templates/model/fixtures.link +1 -0
- data/lib/javascriptmvc/jquery/generate/templates/model/models.link +1 -0
- data/lib/javascriptmvc/jquery/generate/templates/model/test/qunit.link +1 -0
- data/lib/javascriptmvc/jquery/generate/templates/page.ejs +23 -0
- data/lib/javascriptmvc/jquery/generate/templates/plugin/(application_name).html.ejs +23 -0
- data/lib/javascriptmvc/jquery/generate/templates/plugin/(application_name).js.ejs +3 -0
- data/lib/javascriptmvc/jquery/generate/templates/plugin/fixtures/.ignore +0 -0
- data/lib/javascriptmvc/jquery/generate/templates/plugin/funcunit.html.ejs +15 -0
- data/lib/javascriptmvc/jquery/generate/templates/plugin/qunit.html.ejs +20 -0
- data/lib/javascriptmvc/jquery/generate/templates/plugin/resources/.ignore +0 -0
- data/lib/javascriptmvc/jquery/generate/templates/plugin/scripts.link +1 -0
- data/lib/javascriptmvc/jquery/generate/templates/plugin/test.link +1 -0
- data/lib/javascriptmvc/jquery/generate/templates/plugin/views/.ignore +0 -0
- data/lib/javascriptmvc/jquery/generate/templates/scaffold/controllers/(underscore)_controller.js.ejs +96 -0
- data/lib/javascriptmvc/jquery/generate/templates/scaffold/fixtures/(plural).json.get.ejs +3 -0
- data/lib/javascriptmvc/jquery/generate/templates/scaffold/models/(underscore).js.ejs +83 -0
- data/lib/javascriptmvc/jquery/generate/templates/scaffold/test/funcunit/(underscore)_controller_test.js.ejs +63 -0
- data/lib/javascriptmvc/jquery/generate/templates/scaffold/test/qunit/(underscore)_test.js.ejs +45 -0
- data/lib/javascriptmvc/jquery/generate/templates/scaffold/views/(underscore)/edit.ejs.ejs +10 -0
- data/lib/javascriptmvc/jquery/generate/templates/scaffold/views/(underscore)/init.ejs.ejs +26 -0
- data/lib/javascriptmvc/jquery/generate/templates/scaffold/views/(underscore)/list.ejs.ejs +5 -0
- data/lib/javascriptmvc/jquery/generate/templates/scaffold/views/(underscore)/show.ejs.ejs +10 -0
- data/lib/javascriptmvc/jquery/jquery.js +6360 -0
- data/lib/javascriptmvc/jquery/lang/json/json.html +25 -0
- data/lib/javascriptmvc/jquery/lang/json/json.js +201 -0
- data/lib/javascriptmvc/jquery/lang/json/scripts/compress.js +6 -0
- data/lib/javascriptmvc/jquery/lang/json/scripts/doc.js +6 -0
- data/lib/javascriptmvc/jquery/lang/json/test/funcunit/funcunit.html +21 -0
- data/lib/javascriptmvc/jquery/lang/json/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/jquery/lang/json/test/funcunit/json_test.js +11 -0
- data/lib/javascriptmvc/jquery/lang/json/test/funcunit/run.js +10 -0
- data/lib/javascriptmvc/jquery/lang/json/test/qunit/json_test.js +4 -0
- data/lib/javascriptmvc/jquery/lang/json/test/qunit/qunit.html +21 -0
- data/lib/javascriptmvc/jquery/lang/json/test/qunit/qunit.js +9 -0
- data/lib/javascriptmvc/jquery/lang/json/test/qunit/run.js +2 -0
- data/lib/javascriptmvc/jquery/lang/lang.html +27 -0
- data/lib/javascriptmvc/jquery/lang/lang.js +104 -0
- data/lib/javascriptmvc/jquery/lang/openajax/openajax.js +202 -0
- data/lib/javascriptmvc/jquery/lang/rsplit/rsplit.js +31 -0
- data/lib/javascriptmvc/jquery/lang/vector/vector.js +167 -0
- data/lib/javascriptmvc/jquery/model/associations/associations.html +25 -0
- data/lib/javascriptmvc/jquery/model/associations/associations.js +46 -0
- data/lib/javascriptmvc/jquery/model/associations/qunit.html +21 -0
- data/lib/javascriptmvc/jquery/model/associations/test/qunit/associations_test.js +51 -0
- data/lib/javascriptmvc/jquery/model/associations/test/qunit/qunit.js +9 -0
- data/lib/javascriptmvc/jquery/model/associations/test/qunit/run.js +2 -0
- data/lib/javascriptmvc/jquery/model/backup/backup.js +82 -0
- data/lib/javascriptmvc/jquery/model/json_rest/json_rest.js +91 -0
- data/lib/javascriptmvc/jquery/model/list/list.js +148 -0
- data/lib/javascriptmvc/jquery/model/list/qunit.html +16 -0
- data/lib/javascriptmvc/jquery/model/list/test/qunit/list_test.js +58 -0
- data/lib/javascriptmvc/jquery/model/list/test/qunit/qunit.js +6 -0
- data/lib/javascriptmvc/jquery/model/list/test/qunit/run.js +0 -0
- data/lib/javascriptmvc/jquery/model/model.js +537 -0
- data/lib/javascriptmvc/jquery/model/qunit.html +17 -0
- data/lib/javascriptmvc/jquery/model/store/store.js +66 -0
- data/lib/javascriptmvc/jquery/model/test/qunit/model_test.js +71 -0
- data/lib/javascriptmvc/jquery/model/test/qunit/qunit.js +5 -0
- data/lib/javascriptmvc/jquery/qunit.html +15 -0
- data/lib/javascriptmvc/jquery/test/funcunit/funcunit.html +21 -0
- data/lib/javascriptmvc/jquery/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/jquery/test/funcunit/jquerytest_test.js +11 -0
- data/lib/javascriptmvc/jquery/test/funcunit/run.js +10 -0
- data/lib/javascriptmvc/jquery/test/qunit/qunit.js +22 -0
- data/lib/javascriptmvc/jquery/update +5 -0
- data/lib/javascriptmvc/jquery/view/compress.js +7 -0
- data/lib/javascriptmvc/jquery/view/ejs/ejs.html +25 -0
- data/lib/javascriptmvc/jquery/view/ejs/ejs.js +489 -0
- data/lib/javascriptmvc/jquery/view/ejs/funcunit.html +21 -0
- data/lib/javascriptmvc/jquery/view/ejs/test/funcunit/ejs_test.js +11 -0
- data/lib/javascriptmvc/jquery/view/ejs/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/jquery/view/ejs/test/funcunit/run.js +10 -0
- data/lib/javascriptmvc/jquery/view/ejs/test/qunit/ejs_test.js +4 -0
- data/lib/javascriptmvc/jquery/view/ejs/test/qunit/qunit.html +21 -0
- data/lib/javascriptmvc/jquery/view/ejs/test/qunit/qunit.js +9 -0
- data/lib/javascriptmvc/jquery/view/ejs/test/qunit/run.js +2 -0
- data/lib/javascriptmvc/jquery/view/fulljslint.js +3774 -0
- data/lib/javascriptmvc/jquery/view/helpers/helpers.js +338 -0
- data/lib/javascriptmvc/jquery/view/jaml/compress.js +7 -0
- data/lib/javascriptmvc/jquery/view/jaml/funcunit.html +21 -0
- data/lib/javascriptmvc/jquery/view/jaml/jaml.html +25 -0
- data/lib/javascriptmvc/jquery/view/jaml/jaml.js +73 -0
- data/lib/javascriptmvc/jquery/view/jaml/node.js +149 -0
- data/lib/javascriptmvc/jquery/view/jaml/template.js +131 -0
- data/lib/javascriptmvc/jquery/view/jaml/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/jquery/view/jaml/test/funcunit/jaml_test.js +11 -0
- data/lib/javascriptmvc/jquery/view/jaml/test/funcunit/run.js +10 -0
- data/lib/javascriptmvc/jquery/view/jaml/test/qunit/jaml_test.js +4 -0
- data/lib/javascriptmvc/jquery/view/jaml/test/qunit/qunit.html +21 -0
- data/lib/javascriptmvc/jquery/view/jaml/test/qunit/qunit.js +9 -0
- data/lib/javascriptmvc/jquery/view/jaml/test/qunit/run.js +2 -0
- data/lib/javascriptmvc/jquery/view/micro/compress.js +7 -0
- data/lib/javascriptmvc/jquery/view/micro/funcunit.html +21 -0
- data/lib/javascriptmvc/jquery/view/micro/micro.html +25 -0
- data/lib/javascriptmvc/jquery/view/micro/micro.js +57 -0
- data/lib/javascriptmvc/jquery/view/micro/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/jquery/view/micro/test/funcunit/micro_test.js +11 -0
- data/lib/javascriptmvc/jquery/view/micro/test/funcunit/run.js +10 -0
- data/lib/javascriptmvc/jquery/view/micro/test/qunit/micro_test.js +4 -0
- data/lib/javascriptmvc/jquery/view/micro/test/qunit/qunit.html +21 -0
- data/lib/javascriptmvc/jquery/view/micro/test/qunit/qunit.js +9 -0
- data/lib/javascriptmvc/jquery/view/micro/test/qunit/run.js +2 -0
- data/lib/javascriptmvc/jquery/view/qunit.html +16 -0
- data/lib/javascriptmvc/jquery/view/test/compression/compression.html +12 -0
- data/lib/javascriptmvc/jquery/view/test/compression/compression.js +11 -0
- data/lib/javascriptmvc/jquery/view/test/compression/run.js +36 -0
- data/lib/javascriptmvc/jquery/view/test/funcunit/funcunit.js +3 -0
- data/lib/javascriptmvc/jquery/view/test/funcunit/run.js +10 -0
- data/lib/javascriptmvc/jquery/view/test/funcunit/view_test.js +11 -0
- data/lib/javascriptmvc/jquery/view/test/qunit/nested_plugin.ejs +1 -0
- data/lib/javascriptmvc/jquery/view/test/qunit/plugin.ejs +1 -0
- data/lib/javascriptmvc/jquery/view/test/qunit/qunit.js +9 -0
- data/lib/javascriptmvc/jquery/view/test/qunit/template.ejs +1 -0
- data/lib/javascriptmvc/jquery/view/test/qunit/template.jaml +3 -0
- data/lib/javascriptmvc/jquery/view/test/qunit/template.micro +1 -0
- data/lib/javascriptmvc/jquery/view/test/qunit/template.tmpl +1 -0
- data/lib/javascriptmvc/jquery/view/test/qunit/view_test.js +24 -0
- data/lib/javascriptmvc/jquery/view/tmpl/tmpl.js +150 -0
- data/lib/javascriptmvc/jquery/view/view.html +65 -0
- data/lib/javascriptmvc/jquery/view/view.js +296 -0
- data/lib/javascriptmvc/js +56 -0
- data/lib/javascriptmvc/js.bat +57 -0
- data/lib/javascriptmvc/steal/README +26 -0
- data/lib/javascriptmvc/steal/build/apps/apps.js +208 -0
- data/lib/javascriptmvc/steal/build/apps/test.js +4 -0
- data/lib/javascriptmvc/steal/build/build.js +281 -0
- data/lib/javascriptmvc/steal/build/pluginify.js +73 -0
- data/lib/javascriptmvc/steal/build/scripts/compiler.jar +0 -0
- data/lib/javascriptmvc/steal/build/scripts/scripts.js +155 -0
- data/lib/javascriptmvc/steal/build/styles/cssmin.js +17 -0
- data/lib/javascriptmvc/steal/build/styles/styles.js +84 -0
- data/lib/javascriptmvc/steal/build/test/basicpage.html +6 -0
- data/lib/javascriptmvc/steal/build/test/basicproduction.js +1 -0
- data/lib/javascriptmvc/steal/build/test/basicsource.js +6 -0
- data/lib/javascriptmvc/steal/build/test/css/css/css1.css +1 -0
- data/lib/javascriptmvc/steal/build/test/css/css/justin.png +0 -0
- data/lib/javascriptmvc/steal/build/test/css/css2.css +5 -0
- data/lib/javascriptmvc/steal/build/test/css/page.html +9 -0
- data/lib/javascriptmvc/steal/build/test/css/production.css +1 -0
- data/lib/javascriptmvc/steal/build/test/css/test.js +7 -0
- data/lib/javascriptmvc/steal/build/test/css/upload.PNG +0 -0
- data/lib/javascriptmvc/steal/build/test/foreign.html +6 -0
- data/lib/javascriptmvc/steal/build/test/foreign.js +2 -0
- data/lib/javascriptmvc/steal/build/test/removecode.js +11 -0
- data/lib/javascriptmvc/steal/build/test/run.js +57 -0
- data/lib/javascriptmvc/steal/build/test/stealpage.html +10 -0
- data/lib/javascriptmvc/steal/build/test/stealprodpage.html +10 -0
- data/lib/javascriptmvc/steal/build/test/test.js +3 -0
- data/lib/javascriptmvc/steal/buildjs +21 -0
- data/lib/javascriptmvc/steal/clean/beautify.js +1108 -0
- data/lib/javascriptmvc/steal/clean/clean.js +179 -0
- data/lib/javascriptmvc/steal/clean/jslint.js +5662 -0
- data/lib/javascriptmvc/steal/clean/test.js +7 -0
- data/lib/javascriptmvc/steal/cleanjs +5 -0
- data/lib/javascriptmvc/steal/coffee/coffee-script.js +9 -0
- data/lib/javascriptmvc/steal/coffee/coffee.js +56 -0
- data/lib/javascriptmvc/steal/dev/dev.js +83 -0
- data/lib/javascriptmvc/steal/end.js +1 -0
- data/lib/javascriptmvc/steal/generate/app +23 -0
- data/lib/javascriptmvc/steal/generate/ejs.js +470 -0
- data/lib/javascriptmvc/steal/generate/generate.js +211 -0
- data/lib/javascriptmvc/steal/generate/inflector.js +117 -0
- data/lib/javascriptmvc/steal/generate/system.js +33 -0
- data/lib/javascriptmvc/steal/generate/templates/app/(application_name).css.ejs +10 -0
- data/lib/javascriptmvc/steal/generate/templates/app/(application_name).html.ejs +18 -0
- data/lib/javascriptmvc/steal/generate/templates/app/(application_name).js.ejs +10 -0
- data/lib/javascriptmvc/steal/generate/templates/app/docs/.ignore +0 -0
- data/lib/javascriptmvc/steal/generate/templates/app/resources/.ignore +0 -0
- data/lib/javascriptmvc/steal/generate/templates/app/resources/example.coffee.ejs +5 -0
- data/lib/javascriptmvc/steal/generate/templates/app/resources/example.js.ejs +13 -0
- data/lib/javascriptmvc/steal/generate/templates/app/resources/example.less.ejs +9 -0
- data/lib/javascriptmvc/steal/generate/templates/app/scripts/build.js.ejs +6 -0
- data/lib/javascriptmvc/steal/generate/templates/app/scripts/clean.js.ejs +6 -0
- data/lib/javascriptmvc/steal/generate/templates/app/test/.ignore +0 -0
- data/lib/javascriptmvc/steal/generate/templates/page.ejs +23 -0
- data/lib/javascriptmvc/steal/generate/test/test.js +92 -0
- data/lib/javascriptmvc/steal/get/get.js +163 -0
- data/lib/javascriptmvc/steal/get/gets.json +10 -0
- data/lib/javascriptmvc/steal/get/getter.js +115 -0
- data/lib/javascriptmvc/steal/get/github.js +134 -0
- data/lib/javascriptmvc/steal/get/json.js +172 -0
- data/lib/javascriptmvc/steal/getjs +5 -0
- data/lib/javascriptmvc/steal/js +56 -0
- data/lib/javascriptmvc/steal/js.bat +57 -0
- data/lib/javascriptmvc/steal/less/less.js +117 -0
- data/lib/javascriptmvc/steal/less/less_engine.js +2529 -0
- data/lib/javascriptmvc/steal/rhino/blank.html +6 -0
- data/lib/javascriptmvc/steal/rhino/build.js +31 -0
- data/lib/javascriptmvc/steal/rhino/docs.js +68 -0
- data/lib/javascriptmvc/steal/rhino/empty.html +12 -0
- data/lib/javascriptmvc/steal/rhino/env.js +11537 -0
- data/lib/javascriptmvc/steal/rhino/file.js +299 -0
- data/lib/javascriptmvc/steal/rhino/js.jar +0 -0
- data/lib/javascriptmvc/steal/rhino/loader.js +8 -0
- data/lib/javascriptmvc/steal/rhino/prompt.js +49 -0
- data/lib/javascriptmvc/steal/rhino/steal.js +122 -0
- data/lib/javascriptmvc/steal/rhino/test.js +16 -0
- data/lib/javascriptmvc/steal/steal.js +1317 -0
- data/lib/javascriptmvc/steal/steal.production.js +23 -0
- data/lib/javascriptmvc/steal/test/absoluteurl.html +7 -0
- data/lib/javascriptmvc/steal/test/absoluteurl/absoluteurl.js +1 -0
- data/lib/javascriptmvc/steal/test/absoluteurl/alert.js +1 -0
- data/lib/javascriptmvc/steal/test/another/two.js +2 -0
- data/lib/javascriptmvc/steal/test/one/four.js +1 -0
- data/lib/javascriptmvc/steal/test/one/one.js +6 -0
- data/lib/javascriptmvc/steal/test/qunit/qunit.html +22 -0
- data/lib/javascriptmvc/steal/test/qunit/qunit.js +3 -0
- data/lib/javascriptmvc/steal/test/qunit/steal_test.js +197 -0
- data/lib/javascriptmvc/steal/test/run.js +12 -0
- data/lib/javascriptmvc/steal/test/steal.html +37 -0
- data/lib/javascriptmvc/steal/test/test.js +82 -0
- data/lib/javascriptmvc/steal/test/three.js +3 -0
- data/lib/javascriptmvc/steal/testing/test.html +20 -0
- data/lib/javascriptmvc/steal/testing/testing.js +48 -0
- data/lib/javascriptmvc/steal/update +5 -0
- metadata +622 -0
@@ -0,0 +1,12 @@
|
|
1
|
+
module("jquery/event/destroyed")
|
2
|
+
test("removing an element", function(){
|
3
|
+
var div = $("<div/>").data("testData",5)
|
4
|
+
div.appendTo($("#qunit-test-area"))
|
5
|
+
var destroyed = false;
|
6
|
+
div.bind("destroyed",function(){
|
7
|
+
destroyed = true;
|
8
|
+
equals($(this).data("testData"),5, "other data still exists")
|
9
|
+
})
|
10
|
+
div.remove();
|
11
|
+
ok(destroyed, "destroyed called")
|
12
|
+
})
|
@@ -0,0 +1,105 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
2
|
+
"http://www.w3.org/TR/html4/strict.dtd">
|
3
|
+
<html lang="en">
|
4
|
+
<head>
|
5
|
+
<title>drag</title>
|
6
|
+
<style type='text/css'>
|
7
|
+
body {font-family: verdana}
|
8
|
+
.handle {
|
9
|
+
width: 300px;
|
10
|
+
height: 25px;
|
11
|
+
border: dashed 1px red;
|
12
|
+
cursor : pointer;
|
13
|
+
}
|
14
|
+
#container {
|
15
|
+
padding: 20px;
|
16
|
+
border: dashed 2px green;
|
17
|
+
}
|
18
|
+
#representative {
|
19
|
+
width: 100px;
|
20
|
+
height: 60px;
|
21
|
+
border: solid 1px blue;
|
22
|
+
cursor: pointer;
|
23
|
+
}
|
24
|
+
#scrollarea ul li {height: 40px; border: solid 1px gray; font-size: 25px;list-style: none}
|
25
|
+
#scrollarea ul {margin: 0px;padding: 0px;}
|
26
|
+
#scrollarea {
|
27
|
+
width: 200px; height: 100px; overflow: auto;
|
28
|
+
border: solid 2px black;
|
29
|
+
}
|
30
|
+
</style>
|
31
|
+
</head>
|
32
|
+
<body>
|
33
|
+
<div id='demo-html'>
|
34
|
+
<h2>Drag with bind</h2>
|
35
|
+
<div id="drag" class='handle'>Drag Me</div>
|
36
|
+
|
37
|
+
<h2>Delegated Drags</h2>
|
38
|
+
<div id="delegate">
|
39
|
+
<div class='handle'>handle</div>
|
40
|
+
<div class='handle'>handle</div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<h2>Drag Ghost</h2>
|
44
|
+
<div id="ghost" class='handle'>Drag and I get cloned</div>
|
45
|
+
|
46
|
+
<h2>Drag Revert</h2>
|
47
|
+
<div id="revert" class='handle'>Drag and let me go</div>
|
48
|
+
|
49
|
+
<h2>Limit Drag</h2>
|
50
|
+
<div id='container'>
|
51
|
+
<div class='handle'>drag me out of bounds</div>
|
52
|
+
</div>
|
53
|
+
|
54
|
+
<h2>Drag Representative</h2>
|
55
|
+
<div id='repdrag' class='handle'>Drag a Representative</div>
|
56
|
+
<div id='representative' style='display: none'>I represent You</div>
|
57
|
+
|
58
|
+
<h2>Drag Horizontal</h2>
|
59
|
+
<div id='horizontal' class='handle'>I only move horizontal</div>
|
60
|
+
|
61
|
+
<h2>Drag Scrolls</h2>
|
62
|
+
<div id='scroll-drag' class='handle'>I move scrollbars</div>
|
63
|
+
<div id='scrollarea'>
|
64
|
+
<ul><li>1</li><li>2</li><li>3</li>
|
65
|
+
<li>4</li><li>5</li><li>6</li>
|
66
|
+
<li>7</li><li>8</li><li>9</li></ul>
|
67
|
+
</div>
|
68
|
+
</div>
|
69
|
+
<script type='text/javascript' src='../../../steal/steal.js'>
|
70
|
+
</script>
|
71
|
+
<script type='text/javascript'>
|
72
|
+
steal.plugins("jquery/event/drag",
|
73
|
+
"jquery/event/drag/scroll",
|
74
|
+
"jquery/event/drag/limit").then(function($){
|
75
|
+
|
76
|
+
|
77
|
+
}).start()
|
78
|
+
</script>
|
79
|
+
<script type='text/javascript' id='demo-source'>
|
80
|
+
//drag with bind
|
81
|
+
$("#drag").bind("draginit",function(){})
|
82
|
+
|
83
|
+
//delegated drags
|
84
|
+
$("#delegate").delegate(".handle","draginit",function(){})
|
85
|
+
|
86
|
+
//ghost
|
87
|
+
$("#ghost").bind("draginit",function(ev, drag){drag.ghost()})
|
88
|
+
|
89
|
+
//revert
|
90
|
+
$("#revert").bind("draginit",function(ev, drag){drag.revert()})
|
91
|
+
|
92
|
+
//limit
|
93
|
+
$("#container").delegate(".handle","draginit",function(ev, drag){drag.limit( $("#container") )})
|
94
|
+
|
95
|
+
//representative
|
96
|
+
$("#repdrag").bind("draginit",function(ev, drag){drag.representative($("#representative"),50,30)})
|
97
|
+
|
98
|
+
//horizontal
|
99
|
+
$("#horizontal").bind("draginit",function(ev, drag){drag.horizontal()})
|
100
|
+
|
101
|
+
//scrolls
|
102
|
+
$("#scroll-drag").bind("draginit",function(ev, drag){drag.scrolls( $("#scrollarea") )})
|
103
|
+
</script>
|
104
|
+
</body>
|
105
|
+
</html>
|
@@ -0,0 +1,466 @@
|
|
1
|
+
|
2
|
+
steal.plugins('jquery/event','jquery/lang/vector','jquery/event/livehack').then(function($){
|
3
|
+
//modify live
|
4
|
+
//steal the live handler ....
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
var bind = function(object, method){
|
9
|
+
var args = Array.prototype.slice.call(arguments, 2);
|
10
|
+
return function() {
|
11
|
+
var args2 = [this].concat(args, $.makeArray( arguments ));
|
12
|
+
return method.apply(object, args2);
|
13
|
+
};
|
14
|
+
},
|
15
|
+
event = $.event, handle = event.handle;
|
16
|
+
|
17
|
+
/**
|
18
|
+
* @constructor jQuery.Drag
|
19
|
+
* @parent specialevents
|
20
|
+
* @plugin jquery/event/drag
|
21
|
+
* @download jquery/dist/jquery.event.drag.js
|
22
|
+
* @test jquery/event/drag/qunit.html
|
23
|
+
* Provides drag events as a special events to jQuery.
|
24
|
+
* A jQuery.Drag instance is created on a drag and passed
|
25
|
+
* as a parameter to the drag event callbacks. By calling
|
26
|
+
* methods on the drag event, you can alter the drag's
|
27
|
+
* behavior.
|
28
|
+
* <h2>Drag Events</h2>
|
29
|
+
* The drag plugin allows you to listen to the following events:
|
30
|
+
* <ul>
|
31
|
+
* <li><code>dragdown</code> - the mouse cursor is pressed down</li>
|
32
|
+
* <li><code>draginit</code> - the drag motion is started</li>
|
33
|
+
* <li><code>dragmove</code> - the drag is moved</li>
|
34
|
+
* <li><code>dragend</code> - the drag has ended</li>
|
35
|
+
* <li><code>dragover</code> - the drag is over a drop point</li>
|
36
|
+
* <li><code>dragout</code> - the drag moved out of a drop point</li>
|
37
|
+
* </ul>
|
38
|
+
* <p>Just by binding or delegating on one of these events, you make
|
39
|
+
* the element dragable. You can change the behavior of the drag
|
40
|
+
* by calling methods on the drag object passed to the callback.
|
41
|
+
* <h3>Example</h3>
|
42
|
+
* Here's a quick example:
|
43
|
+
* @codestart
|
44
|
+
* //makes the drag vertical
|
45
|
+
* $(".drags").live("draginit", function(event, drag){
|
46
|
+
* drag.vertical();
|
47
|
+
* })
|
48
|
+
* //gets the position of the drag and uses that to set the width
|
49
|
+
* //of an element
|
50
|
+
* $(".resize").live("dragmove",function(event, drag){
|
51
|
+
* $(this).width(drag.position.left() - $(this).offset().left )
|
52
|
+
* })
|
53
|
+
* @codeend
|
54
|
+
* <h2>Drag Object</h2>
|
55
|
+
* <p>The drag object is passed after the event to drag
|
56
|
+
* event callback functions. By calling methods
|
57
|
+
* and changing the properties of the drag object,
|
58
|
+
* you can alter how the drag behaves.
|
59
|
+
* </p>
|
60
|
+
* <p>The drag properties and methods:</p>
|
61
|
+
* <ul>
|
62
|
+
* <li><code>[jQuery.Drag.prototype.cancel cancel]</code> - stops the drag motion from happening</li>
|
63
|
+
* <li><code>[jQuery.Drag.prototype.ghost ghost]</code> - copys the draggable and drags the cloned element</li>
|
64
|
+
* <li><code>[jQuery.Drag.prototype.horizontal horizontal]</code> - limits the scroll to horizontal movement</li>
|
65
|
+
* <li><code>[jQuery.Drag.prototype.location location]</code> - where the drag should be on the screen</li>
|
66
|
+
* <li><code>[jQuery.Drag.prototype.mouseElementPosition mouseElementPosition]</code> - where the mouse should be on the drag</li>
|
67
|
+
* <li><code>[jQuery.Drag.prototype.only only]</code> - only have drags, no drops</li>
|
68
|
+
* <li><code>[jQuery.Drag.prototype.representative representative]</code> - move another element in place of this element</li>
|
69
|
+
* <li><code>[jQuery.Drag.prototype.revert revert]</code> - animate the drag back to its position</li>
|
70
|
+
* <li><code>[jQuery.Drag.prototype.vertical vertical]</code> - limit the drag to vertical movement</li>
|
71
|
+
* <li><code>[jQuery.Drag.prototype.limit limit]</code> - limit the drag within an element (*limit plugin)</li>
|
72
|
+
* <li><code>[jQuery.Drag.prototype.scrolls scrolls]</code> - scroll scrollable areas when dragging near their boundries (*scroll plugin)</li>
|
73
|
+
* </ul>
|
74
|
+
* <h2>Demo</h2>
|
75
|
+
* Now lets see some examples:
|
76
|
+
* @demo jquery/event/drag/drag.html 1000
|
77
|
+
* @init
|
78
|
+
* The constructor is never called directly.
|
79
|
+
*/
|
80
|
+
$.Drag = function(){}
|
81
|
+
|
82
|
+
/**
|
83
|
+
* @Static
|
84
|
+
*/
|
85
|
+
$.extend($.Drag,
|
86
|
+
{
|
87
|
+
lowerName: "drag",
|
88
|
+
current : null,
|
89
|
+
/**
|
90
|
+
* Called when someone mouses down on a draggable object.
|
91
|
+
* Gathers all callback functions and creates a new Draggable.
|
92
|
+
* @hide
|
93
|
+
*/
|
94
|
+
mousedown: function( ev, element ) {
|
95
|
+
var isLeftButton = ev.button == 0 || ev.button == 1;
|
96
|
+
if( !isLeftButton || this.current) return; //only allows 1 drag at a time, but in future could allow more
|
97
|
+
|
98
|
+
ev.preventDefault();
|
99
|
+
//create Drag
|
100
|
+
var drag = new $.Drag(),
|
101
|
+
delegate = ev.liveFired || element,
|
102
|
+
selector = ev.handleObj.selector,
|
103
|
+
self = this;
|
104
|
+
this.current = drag;
|
105
|
+
|
106
|
+
drag.setup({
|
107
|
+
element: element,
|
108
|
+
delegate: ev.liveFired || element,
|
109
|
+
selector: ev.handleObj.selector,
|
110
|
+
moved: false,
|
111
|
+
callbacks: {
|
112
|
+
dragdown: event.find(delegate, ["dragdown"], selector),
|
113
|
+
draginit: event.find(delegate, ["draginit"], selector),
|
114
|
+
dragover: event.find(delegate, ["dragover"], selector),
|
115
|
+
dragmove: event.find(delegate, ["dragmove"], selector),
|
116
|
+
dragout: event.find(delegate, ["dragout"], selector),
|
117
|
+
dragend: event.find(delegate, ["dragend"], selector)
|
118
|
+
},
|
119
|
+
destroyed: function() {
|
120
|
+
self.current = null;
|
121
|
+
}
|
122
|
+
}, ev)
|
123
|
+
}
|
124
|
+
})
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
/**
|
131
|
+
* @Prototype
|
132
|
+
*/
|
133
|
+
$.extend($.Drag.prototype , {
|
134
|
+
setup: function( options, ev ) {
|
135
|
+
this.noSelection();
|
136
|
+
$.extend(this,options);
|
137
|
+
this.element = $(this.element);
|
138
|
+
this.event = ev;
|
139
|
+
this.moved = false;
|
140
|
+
this.allowOtherDrags = false;
|
141
|
+
var mousemove = bind(this, this.mousemove);
|
142
|
+
var mouseup = bind(this, this.mouseup);
|
143
|
+
this._mousemove = mousemove;
|
144
|
+
this._mouseup = mouseup;
|
145
|
+
$(document).bind('mousemove' ,mousemove);
|
146
|
+
$(document).bind('mouseup',mouseup);
|
147
|
+
this.callEvents('down',this.element, ev)
|
148
|
+
},
|
149
|
+
/**
|
150
|
+
* Unbinds listeners and allows other drags ...
|
151
|
+
* @hide
|
152
|
+
*/
|
153
|
+
destroy : function() {
|
154
|
+
$(document).unbind('mousemove', this._mousemove);
|
155
|
+
$(document).unbind('mouseup', this._mouseup);
|
156
|
+
if(!this.moved){
|
157
|
+
this.event = this.element = null;
|
158
|
+
}
|
159
|
+
this.selection();
|
160
|
+
this.destroyed();
|
161
|
+
},
|
162
|
+
mousemove: function( docEl, ev ) {
|
163
|
+
if(!this.moved){
|
164
|
+
this.init(this.element, ev)
|
165
|
+
this.moved= true;
|
166
|
+
}
|
167
|
+
|
168
|
+
var pointer = ev.vector();
|
169
|
+
if (this._start_position && this._start_position.equals(pointer)) {
|
170
|
+
return;
|
171
|
+
}
|
172
|
+
//e.preventDefault();
|
173
|
+
|
174
|
+
this.draw(pointer, ev);
|
175
|
+
},
|
176
|
+
mouseup: function( docEl,event ) {
|
177
|
+
//if there is a current, we should call its dragstop
|
178
|
+
if(this.moved){
|
179
|
+
this.end(event);
|
180
|
+
}
|
181
|
+
this.destroy();
|
182
|
+
},
|
183
|
+
noSelection: function() {
|
184
|
+
document.documentElement.onselectstart = function() { return false; };
|
185
|
+
document.documentElement.unselectable = "on";
|
186
|
+
$(document.documentElement).css('-moz-user-select', 'none');
|
187
|
+
},
|
188
|
+
selection: function() {
|
189
|
+
document.documentElement.onselectstart = function() { };
|
190
|
+
document.documentElement.unselectable = "off";
|
191
|
+
$(document.documentElement).css('-moz-user-select', '');
|
192
|
+
},
|
193
|
+
init: function( element, event ) {
|
194
|
+
element = $(element);
|
195
|
+
var startElement = (this.movingElement = (this.element = $(element))); //the element that has been clicked on
|
196
|
+
//if a mousemove has come after the click
|
197
|
+
this._cancelled = false; //if the drag has been cancelled
|
198
|
+
this.event = event;
|
199
|
+
this.mouseStartPosition = event.vector(); //where the mouse is located
|
200
|
+
/**
|
201
|
+
* @attribute mouseElementPosition
|
202
|
+
* The position of start of the cursor on the element
|
203
|
+
*/
|
204
|
+
this.mouseElementPosition = this.mouseStartPosition.minus( this.element.offsetv() ); //where the mouse is on the Element
|
205
|
+
|
206
|
+
//this.callStart(element, event);
|
207
|
+
this.callEvents('init',element, event)
|
208
|
+
|
209
|
+
//Check what they have set and respond accordingly
|
210
|
+
// if they canceled
|
211
|
+
if(this._cancelled == true) return;
|
212
|
+
//if they set something else as the element
|
213
|
+
|
214
|
+
this.startPosition = startElement != this.movingElement ? this.movingElement.offsetv() : this.currentDelta();
|
215
|
+
|
216
|
+
this.movingElement.makePositioned();
|
217
|
+
this.oldZIndex = this.movingElement.css('zIndex');
|
218
|
+
this.movingElement.css('zIndex',1000);
|
219
|
+
if(!this._only && this.constructor.responder)
|
220
|
+
this.constructor.responder.compile(event, this);
|
221
|
+
},
|
222
|
+
callEvents: function( type, element, event, drop ) {
|
223
|
+
var cbs = this.callbacks[this.constructor.lowerName+type];
|
224
|
+
for(var i=0; i < cbs.length; i++){
|
225
|
+
cbs[i].call(element, event, this, drop)
|
226
|
+
}
|
227
|
+
},
|
228
|
+
/**
|
229
|
+
* Returns the position of the movingElement by taking its top and left.
|
230
|
+
* @hide
|
231
|
+
* @return {Vector}
|
232
|
+
*/
|
233
|
+
currentDelta: function() {
|
234
|
+
return new $.Vector( parseInt( this.movingElement.css('left') ) || 0 ,
|
235
|
+
parseInt( this.movingElement.css('top') ) || 0 ) ;
|
236
|
+
},
|
237
|
+
//draws the position of the dragmove object
|
238
|
+
draw: function( pointer, event ) {
|
239
|
+
// only drag if we haven't been cancelled;
|
240
|
+
if(this._cancelled) return;
|
241
|
+
/**
|
242
|
+
* @attribute location
|
243
|
+
* The location of where the element should be in the page. This
|
244
|
+
* takes into account the start position of the cursor on the element.
|
245
|
+
*/
|
246
|
+
this.location = pointer.minus(this.mouseElementPosition); // the offset between the mouse pointer and the representative that the user asked for
|
247
|
+
// position = mouse - (dragOffset - dragTopLeft) - mousePosition
|
248
|
+
this.move( event );
|
249
|
+
if(this._cancelled) return;
|
250
|
+
if(!event.isDefaultPrevented())
|
251
|
+
this.position(this.location);
|
252
|
+
|
253
|
+
//fill in
|
254
|
+
if(!this._only && this.constructor.responder)
|
255
|
+
this.constructor.responder.show(pointer, this, event);
|
256
|
+
},
|
257
|
+
/**
|
258
|
+
* @hide
|
259
|
+
* Set the drag to only allow horizontal dragging
|
260
|
+
*/
|
261
|
+
position: function( offsetPositionv ) { //should draw it on the page
|
262
|
+
var dragged_element_page_offset = this.movingElement.offsetv(); // the drag element's current page location
|
263
|
+
|
264
|
+
var dragged_element_css_offset = this.currentDelta(); // the drag element's current left + top css attributes
|
265
|
+
|
266
|
+
var dragged_element_position_vector = // the vector between the movingElement's page and css positions
|
267
|
+
dragged_element_page_offset.minus(dragged_element_css_offset); // this can be thought of as the original offset
|
268
|
+
|
269
|
+
this.required_css_position = offsetPositionv.minus(dragged_element_position_vector)
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
var style = this.movingElement[0].style;
|
274
|
+
if(!this._cancelled && !this._horizontal) {
|
275
|
+
style.top = this.required_css_position.top() + "px"
|
276
|
+
}
|
277
|
+
if(!this._cancelled && !this._vertical){
|
278
|
+
style.left = this.required_css_position.left() + "px"
|
279
|
+
}
|
280
|
+
},
|
281
|
+
move: function( event ) {
|
282
|
+
this.callEvents('move',this.element, event)
|
283
|
+
},
|
284
|
+
over: function( event, drop ) {
|
285
|
+
this.callEvents('over',this.element, event, drop)
|
286
|
+
},
|
287
|
+
out: function( event, drop ) {
|
288
|
+
this.callEvents('out',this.element, event, drop)
|
289
|
+
},
|
290
|
+
/**
|
291
|
+
* Called on drag up
|
292
|
+
* @hide
|
293
|
+
* @param {Event} event a mouseup event signalling drag/drop has completed
|
294
|
+
*/
|
295
|
+
end: function( event ) {
|
296
|
+
if(this._cancelled) return;
|
297
|
+
if(!this._only && this.constructor.responder)
|
298
|
+
this.constructor.responder.end(event, this);
|
299
|
+
|
300
|
+
this.callEvents('end',this.element, event)
|
301
|
+
|
302
|
+
if(this._revert){
|
303
|
+
var self= this;
|
304
|
+
this.movingElement.animate(
|
305
|
+
{
|
306
|
+
top: this.startPosition.top()+"px",
|
307
|
+
left: this.startPosition.left()+"px"},
|
308
|
+
function(){
|
309
|
+
self.cleanup.apply(self, arguments)
|
310
|
+
}
|
311
|
+
)
|
312
|
+
}
|
313
|
+
else
|
314
|
+
this.cleanup();
|
315
|
+
this.event = null;
|
316
|
+
},
|
317
|
+
/**
|
318
|
+
* Cleans up drag element after drag drop.
|
319
|
+
* @hide
|
320
|
+
*/
|
321
|
+
cleanup: function() {
|
322
|
+
this.movingElement.css({zIndex: this.oldZIndex});
|
323
|
+
if (this.movingElement[0] !== this.element[0])
|
324
|
+
this.movingElement.css({ display: 'none' });
|
325
|
+
if(this._removeMovingElement)
|
326
|
+
this.movingElement.remove();
|
327
|
+
|
328
|
+
this.movingElement = this.element = this.event = null;
|
329
|
+
},
|
330
|
+
/**
|
331
|
+
* Stops drag drop from running.
|
332
|
+
*/
|
333
|
+
cancel: function() {
|
334
|
+
this._cancelled = true;
|
335
|
+
//this.end(this.event);
|
336
|
+
if(!this._only && this.constructor.responder)
|
337
|
+
this.constructor.responder.clear(this.event.vector(), this, this.event);
|
338
|
+
this.destroy();
|
339
|
+
|
340
|
+
},
|
341
|
+
/**
|
342
|
+
* Clones the element and uses it as the moving element.
|
343
|
+
* @return {jQuery.fn} the ghost
|
344
|
+
*/
|
345
|
+
ghost: function( loc ) {
|
346
|
+
// create a ghost by cloning the source element and attach the clone to the dom after the source element
|
347
|
+
var ghost = this.movingElement.clone().css('position','absolute');
|
348
|
+
(loc ? $(loc) : this.movingElement ).after(ghost);
|
349
|
+
ghost.width(this.movingElement.width())
|
350
|
+
.height(this.movingElement.height())
|
351
|
+
|
352
|
+
// store the original element and make the ghost the dragged element
|
353
|
+
this.movingElement = ghost;
|
354
|
+
this._removeMovingElement = true;
|
355
|
+
return ghost;
|
356
|
+
},
|
357
|
+
/**
|
358
|
+
* Use a representative element, instead of the movingElement.
|
359
|
+
* @param {HTMLElement} element the element you want to actually drag
|
360
|
+
* @param {Number} offsetX the x position where you want your mouse on the object
|
361
|
+
* @param {Number} offsetY the y position where you want your mouse on the object
|
362
|
+
*/
|
363
|
+
representative: function( element, offsetX, offsetY ){
|
364
|
+
this._offsetX = offsetX || 0;
|
365
|
+
this._offsetY = offsetY || 0;
|
366
|
+
|
367
|
+
var p = this.mouseStartPosition;
|
368
|
+
|
369
|
+
this.movingElement = $(element);
|
370
|
+
this.movingElement.css({
|
371
|
+
top: (p.y() - this._offsetY) + "px",
|
372
|
+
left: (p.x() - this._offsetX) + "px",
|
373
|
+
display: 'block',
|
374
|
+
position: 'absolute'
|
375
|
+
}).show();
|
376
|
+
|
377
|
+
this.mouseElementPosition = new $.Vector(this._offsetX, this._offsetY)
|
378
|
+
},
|
379
|
+
/**
|
380
|
+
* Makes the movingElement go back to its original position after drop.
|
381
|
+
* @codestart
|
382
|
+
* ".handle dragend" : function( el, ev, drag ) {
|
383
|
+
* drag.revert()
|
384
|
+
* }
|
385
|
+
* @codeend
|
386
|
+
* @param {Boolean} [val] optional, set to false if you don't want to revert.
|
387
|
+
*/
|
388
|
+
revert: function( val ) {
|
389
|
+
this._revert = val == null ? true : val;
|
390
|
+
},
|
391
|
+
/**
|
392
|
+
* Isolates the drag to vertical movement.
|
393
|
+
*/
|
394
|
+
vertical: function() {
|
395
|
+
this._vertical = true;
|
396
|
+
},
|
397
|
+
/**
|
398
|
+
* Isolates the drag to horizontal movement.
|
399
|
+
*/
|
400
|
+
horizontal: function() {
|
401
|
+
this._horizontal = true;
|
402
|
+
},
|
403
|
+
|
404
|
+
|
405
|
+
/**
|
406
|
+
* Respondables will not be alerted to this drag.
|
407
|
+
*/
|
408
|
+
only: function( only ) {
|
409
|
+
return (this._only = (only === undefined ? true : only));
|
410
|
+
}
|
411
|
+
});
|
412
|
+
|
413
|
+
/**
|
414
|
+
* @add jQuery.event.special static
|
415
|
+
*/
|
416
|
+
event.setupHelper( [
|
417
|
+
/**
|
418
|
+
* @attribute dragdown
|
419
|
+
* Listens for when a drag movement has started on a mousedown.
|
420
|
+
* <p>Drag events are covered in more detail in [jQuery.Drag].</p>
|
421
|
+
* @codestart
|
422
|
+
* $(".handles").live("dragdown", function(ev, drag){})
|
423
|
+
* @codeend
|
424
|
+
*/
|
425
|
+
'dragdown',
|
426
|
+
/**
|
427
|
+
* @attribute draginit
|
428
|
+
* Called when the drag starts.
|
429
|
+
* <p>Drag events are covered in more detail in [jQuery.Drag].</p>
|
430
|
+
*/
|
431
|
+
'draginit',
|
432
|
+
/**
|
433
|
+
* @attribute dragover
|
434
|
+
* Called when the drag is over a drop.
|
435
|
+
* <p>Drag events are covered in more detail in [jQuery.Drag].</p>
|
436
|
+
*/
|
437
|
+
'dragover',
|
438
|
+
/**
|
439
|
+
* @attribute dragmove
|
440
|
+
* Called when the drag is moved.
|
441
|
+
* <p>Drag events are covered in more detail in [jQuery.Drag].</p>
|
442
|
+
*/
|
443
|
+
'dragmove',
|
444
|
+
/**
|
445
|
+
* @attribute dragout
|
446
|
+
* When the drag leaves a drop point.
|
447
|
+
* <p>Drag events are covered in more detail in [jQuery.Drag].</p>
|
448
|
+
*/
|
449
|
+
'dragout',
|
450
|
+
/**
|
451
|
+
* @attribute dragend
|
452
|
+
* Called when the drag is done.
|
453
|
+
* <p>Drag events are covered in more detail in [jQuery.Drag].</p>
|
454
|
+
*/
|
455
|
+
'dragend'
|
456
|
+
], "mousedown", function(e){
|
457
|
+
$.Drag.mousedown.call($.Drag, e, this)
|
458
|
+
|
459
|
+
} )
|
460
|
+
|
461
|
+
|
462
|
+
|
463
|
+
|
464
|
+
});
|
465
|
+
|
466
|
+
|