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,291 @@
|
|
1
|
+
//handles mosue events
|
2
|
+
steal.then(function(){
|
3
|
+
|
4
|
+
var h = Syn.helpers;
|
5
|
+
|
6
|
+
Syn.mouse = {};
|
7
|
+
h.extend(Syn.defaults,{
|
8
|
+
mousedown: function( options ) {
|
9
|
+
Syn.trigger("focus", {}, this)
|
10
|
+
},
|
11
|
+
click: function() {
|
12
|
+
// prevents the access denied issue in IE if the click causes the element to be destroyed
|
13
|
+
var element = this;
|
14
|
+
try {
|
15
|
+
element.nodeType;
|
16
|
+
} catch(e){
|
17
|
+
return;
|
18
|
+
}
|
19
|
+
//get old values
|
20
|
+
var href,
|
21
|
+
checked = Syn.data(element,"checked"),
|
22
|
+
scope = Syn.helpers.getWindow(element),
|
23
|
+
nodeName = element.nodeName.toLowerCase();
|
24
|
+
|
25
|
+
if( (href = Syn.data(element,"href") ) ){
|
26
|
+
element.setAttribute('href',href)
|
27
|
+
}
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
//run href javascript
|
32
|
+
if(!Syn.support.linkHrefJS
|
33
|
+
&& /^\s*javascript:/.test(element.href)){
|
34
|
+
//eval js
|
35
|
+
var code = element.href.replace(/^\s*javascript:/,"")
|
36
|
+
|
37
|
+
//try{
|
38
|
+
if (code != "//" && code.indexOf("void(0)") == -1) {
|
39
|
+
if(window.selenium){
|
40
|
+
eval("with(selenium.browserbot.getCurrentWindow()){"+code+"}")
|
41
|
+
}else{
|
42
|
+
eval("with(scope){"+code+"}")
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
//submit a form
|
48
|
+
if(!(Syn.support.clickSubmits) &&
|
49
|
+
(nodeName == "input"
|
50
|
+
&& element.type == "submit" ) ||
|
51
|
+
nodeName == 'button' ){
|
52
|
+
|
53
|
+
var form = Syn.closest(element, "form");
|
54
|
+
if(form){
|
55
|
+
Syn.trigger("submit",{},form)
|
56
|
+
}
|
57
|
+
|
58
|
+
}
|
59
|
+
//follow a link, probably needs to check if in an a.
|
60
|
+
if(nodeName == "a"
|
61
|
+
&& element.href
|
62
|
+
&& !/^\s*javascript:/.test(element.href)){
|
63
|
+
|
64
|
+
scope.location.href = element.href;
|
65
|
+
|
66
|
+
}
|
67
|
+
|
68
|
+
//change a checkbox
|
69
|
+
if(nodeName == "input"
|
70
|
+
&& element.type == "checkbox"){
|
71
|
+
|
72
|
+
if(!Syn.support.clickChecks && !Syn.support.changeChecks){
|
73
|
+
element.checked = !element.checked;
|
74
|
+
}
|
75
|
+
if(!Syn.support.clickChanges){
|
76
|
+
Syn.trigger("change",{}, element );
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
//change a radio button
|
81
|
+
if(nodeName == "input" && element.type == "radio"){ // need to uncheck others if not checked
|
82
|
+
|
83
|
+
if(!Syn.support.clickChecks && !Syn.support.changeChecks){
|
84
|
+
//do the checks manually
|
85
|
+
if(!element.checked){ //do nothing, no change
|
86
|
+
element.checked = true;
|
87
|
+
}
|
88
|
+
}
|
89
|
+
if(checked != element.checked && !Syn.support.radioClickChanges){
|
90
|
+
Syn.trigger("change",{}, element );
|
91
|
+
}
|
92
|
+
}
|
93
|
+
// change options
|
94
|
+
if(nodeName == "option" && Syn.data(element,"createChange")){
|
95
|
+
Syn.trigger("change",{}, element.parentNode);//does not bubble
|
96
|
+
Syn.data(element,"createChange",false)
|
97
|
+
}
|
98
|
+
}
|
99
|
+
})
|
100
|
+
|
101
|
+
|
102
|
+
//add create and setup behavior for mosue events
|
103
|
+
h.extend(Syn.create,{
|
104
|
+
mouse : {
|
105
|
+
options: function( type, options, element ) {
|
106
|
+
var doc = document.documentElement, body = document.body,
|
107
|
+
center = [options.pageX || 0, options.pageY || 0],
|
108
|
+
//browser might not be loaded yet (doing support code)
|
109
|
+
left = Syn.mouse.browser && Syn.mouse.browser.left[type],
|
110
|
+
right = Syn.mouse.browser && Syn.mouse.browser.right[type];
|
111
|
+
return h.extend({
|
112
|
+
bubbles : true,cancelable : true,
|
113
|
+
view : window,
|
114
|
+
detail : 1,
|
115
|
+
screenX : 1, screenY : 1,
|
116
|
+
clientX : options.clientX || center[0] -(doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc.clientLeft || 0),
|
117
|
+
clientY : options.clientY || center[1] -(doc && doc.scrollTop || body && body.scrollTop || 0) - (doc.clientTop || 0),
|
118
|
+
ctrlKey : !!Syn.key.ctrlKey,
|
119
|
+
altKey : !!Syn.key.altKey,
|
120
|
+
shiftKey : !!Syn.key.shiftKey,
|
121
|
+
metaKey : !!Syn.key.metaKey,
|
122
|
+
button : left && left.button != null ?
|
123
|
+
left.button :
|
124
|
+
right && right.button || (type == 'contextmenu' ? 2 : 0),
|
125
|
+
relatedTarget : document.documentElement
|
126
|
+
}, options);
|
127
|
+
},
|
128
|
+
event : document.createEvent ?
|
129
|
+
function(type, defaults, element){ //Everyone Else
|
130
|
+
var event;
|
131
|
+
|
132
|
+
try {
|
133
|
+
event = element.ownerDocument.createEvent('MouseEvents');
|
134
|
+
event.initMouseEvent(type,
|
135
|
+
defaults.bubbles, defaults.cancelable,
|
136
|
+
defaults.view,
|
137
|
+
defaults.detail,
|
138
|
+
defaults.screenX, defaults.screenY,defaults.clientX,defaults.clientY,
|
139
|
+
defaults.ctrlKey,defaults.altKey,defaults.shiftKey,defaults.metaKey,
|
140
|
+
defaults.button,defaults.relatedTarget);
|
141
|
+
} catch(e) {
|
142
|
+
event = h.createBasicStandardEvent(type,defaults)
|
143
|
+
}
|
144
|
+
event.synthetic = true;
|
145
|
+
return event;
|
146
|
+
} :
|
147
|
+
h.createEventObject
|
148
|
+
},
|
149
|
+
click : {
|
150
|
+
setup: function( type, options, element ) {
|
151
|
+
try{
|
152
|
+
Syn.data(element,"checked", element.checked);
|
153
|
+
}catch(e){}
|
154
|
+
if(
|
155
|
+
element.nodeName.toLowerCase() == "a"
|
156
|
+
&& element.href
|
157
|
+
&& !/^\s*javascript:/.test(element.href)){
|
158
|
+
|
159
|
+
//save href
|
160
|
+
Syn.data(element,"href", element.href)
|
161
|
+
|
162
|
+
//remove b/c safari/opera will open a new tab instead of changing the page
|
163
|
+
element.setAttribute('href','javascript://')
|
164
|
+
}
|
165
|
+
//if select or option, save old value and mark to change
|
166
|
+
if(/option/i.test(element.nodeName)){
|
167
|
+
var child = element.parentNode.firstChild,
|
168
|
+
i = -1;
|
169
|
+
while(child){
|
170
|
+
if(child.nodeType ==1){
|
171
|
+
i++;
|
172
|
+
if(child == element) break;
|
173
|
+
}
|
174
|
+
child = child.nextSibling;
|
175
|
+
}
|
176
|
+
if(i !== element.parentNode.selectedIndex){
|
177
|
+
//shouldn't this wait on triggering
|
178
|
+
//change?
|
179
|
+
element.parentNode.selectedIndex = i;
|
180
|
+
Syn.data(element,"createChange",true)
|
181
|
+
}
|
182
|
+
}
|
183
|
+
}
|
184
|
+
},
|
185
|
+
mousedown : {
|
186
|
+
setup: function( type,options, element ) {
|
187
|
+
var nn = element.nodeName.toLowerCase();
|
188
|
+
//we have to auto prevent default to prevent freezing error in safari
|
189
|
+
if(Syn.browser.safari && (nn == "select" || nn == "option" )){
|
190
|
+
options._autoPrevent = true;
|
191
|
+
}
|
192
|
+
}
|
193
|
+
}
|
194
|
+
});
|
195
|
+
//do support code
|
196
|
+
(function(){
|
197
|
+
if(!document.body){
|
198
|
+
setTimeout(arguments.callee,1)
|
199
|
+
return;
|
200
|
+
}
|
201
|
+
var oldSynth = window.__synthTest;
|
202
|
+
window.__synthTest = function(){
|
203
|
+
Syn.support.linkHrefJS = true;
|
204
|
+
}
|
205
|
+
var div = document.createElement("div"),
|
206
|
+
checkbox,
|
207
|
+
submit,
|
208
|
+
form,
|
209
|
+
input,
|
210
|
+
select;
|
211
|
+
|
212
|
+
div.innerHTML = "<form id='outer'>"+
|
213
|
+
"<input name='checkbox' type='checkbox'/>"+
|
214
|
+
"<input name='radio' type='radio' />"+
|
215
|
+
"<input type='submit' name='submitter'/>"+
|
216
|
+
"<input type='input' name='inputter'/>"+
|
217
|
+
"<input name='one'>"+
|
218
|
+
"<input name='two'/>"+
|
219
|
+
"<a href='javascript:__synthTest()' id='synlink'></a>"+
|
220
|
+
"<select><option></option></select>"+
|
221
|
+
"</form>";
|
222
|
+
document.documentElement.appendChild(div);
|
223
|
+
form = div.firstChild
|
224
|
+
checkbox = form.childNodes[0];
|
225
|
+
submit = form.childNodes[2];
|
226
|
+
select = form.getElementsByTagName('select')[0]
|
227
|
+
|
228
|
+
checkbox.checked = false;
|
229
|
+
checkbox.onchange = function(){
|
230
|
+
Syn.support.clickChanges = true;
|
231
|
+
}
|
232
|
+
|
233
|
+
Syn.trigger("click", {}, checkbox)
|
234
|
+
Syn.support.clickChecks = checkbox.checked;
|
235
|
+
checkbox.checked = false;
|
236
|
+
|
237
|
+
Syn.trigger("change", {}, checkbox);
|
238
|
+
|
239
|
+
Syn.support.changeChecks = checkbox.checked;
|
240
|
+
|
241
|
+
form.onsubmit = function(ev){
|
242
|
+
if (ev.preventDefault)
|
243
|
+
ev.preventDefault();
|
244
|
+
Syn.support.clickSubmits = true;
|
245
|
+
return false;
|
246
|
+
}
|
247
|
+
Syn.trigger("click", {}, submit)
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
form.childNodes[1].onchange = function(){
|
252
|
+
Syn.support.radioClickChanges = true;
|
253
|
+
}
|
254
|
+
Syn.trigger("click", {}, form.childNodes[1])
|
255
|
+
|
256
|
+
|
257
|
+
Syn.bind(div, 'click', function(){
|
258
|
+
Syn.support.optionClickBubbles = true;
|
259
|
+
Syn.unbind(div,'click', arguments.callee)
|
260
|
+
})
|
261
|
+
Syn.trigger("click",{},select.firstChild)
|
262
|
+
|
263
|
+
|
264
|
+
Syn.support.changeBubbles = Syn.eventSupported('change');
|
265
|
+
|
266
|
+
//test if mousedown followed by mouseup causes click (opera), make sure there are no clicks after this
|
267
|
+
var clicksCount = 0
|
268
|
+
div.onclick = function(){
|
269
|
+
Syn.support.mouseDownUpClicks = true;
|
270
|
+
//we should use this to check for opera potentially, but would
|
271
|
+
//be difficult to remove element correctly
|
272
|
+
//Syn.support.mouseDownUpRepeatClicks = (2 == (++clicksCount))
|
273
|
+
}
|
274
|
+
Syn.trigger("mousedown",{},div)
|
275
|
+
Syn.trigger("mouseup",{},div)
|
276
|
+
|
277
|
+
//setTimeout(function(){
|
278
|
+
// Syn.trigger("mousedown",{},div)
|
279
|
+
// Syn.trigger("mouseup",{},div)
|
280
|
+
//},1)
|
281
|
+
|
282
|
+
|
283
|
+
document.documentElement.removeChild(div);
|
284
|
+
|
285
|
+
//check stuff
|
286
|
+
window.__synthTest = oldSynth;
|
287
|
+
//support.ready = true;
|
288
|
+
})();
|
289
|
+
|
290
|
+
|
291
|
+
})
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<link rel="stylesheet" type="text/css" href="../../funcunit/qunit/qunit.css" />
|
4
|
+
<style>
|
5
|
+
|
6
|
+
</style>
|
7
|
+
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
|
11
|
+
<h1 id="qunit-header">Syn Test Suite</h1>
|
12
|
+
<h2 id="qunit-banner"></h2>
|
13
|
+
<div id="qunit-testrunner-toolbar"></div>
|
14
|
+
<h2 id="qunit-userAgent"></h2>
|
15
|
+
<div id="test-content"></div>
|
16
|
+
<ol id="qunit-tests"></ol>
|
17
|
+
<div id='syntheticSupport'></div>
|
18
|
+
<div id="qunit-test-area"></div>
|
19
|
+
<div id="mlog"></div>
|
20
|
+
<script type='text/javascript' src='../../steal/steal.js?steal[app]=funcunit/synthetic/test/qunit'></script>
|
21
|
+
</body>
|
22
|
+
</html>
|
@@ -0,0 +1,303 @@
|
|
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>Synthetic Typing Test</title>
|
6
|
+
<style type='text/css'>
|
7
|
+
body {font-family: verdana}
|
8
|
+
td {text-align: right}
|
9
|
+
td:nth-child(even) {background: #CCd}
|
10
|
+
#key th:nth-child(even) {background: #CCf}
|
11
|
+
#who th:nth-child(even) {background: #fCb}
|
12
|
+
</style>
|
13
|
+
</head>
|
14
|
+
<body>
|
15
|
+
<h1>Key Recorder</h1>
|
16
|
+
<p id='ua' tabindex='2'></p>
|
17
|
+
<div>
|
18
|
+
Type 'a'
|
19
|
+
<input id='t_a' />
|
20
|
+
</div>
|
21
|
+
<div>
|
22
|
+
Type [backspace]
|
23
|
+
<input id='t_\\b' /> - specialChars
|
24
|
+
</div>
|
25
|
+
<div>
|
26
|
+
Type [Enter]
|
27
|
+
<input id='t_\\r' /> - function
|
28
|
+
</div>
|
29
|
+
<div>
|
30
|
+
Type and hold [down]
|
31
|
+
<input id='t_down' /> - navigation
|
32
|
+
</div>
|
33
|
+
<div>
|
34
|
+
Type and hold [shift]
|
35
|
+
<input id='t_shift' /> - special
|
36
|
+
</div>
|
37
|
+
<div>
|
38
|
+
Type [b]
|
39
|
+
<input id='keyUpPrevent' /> - preventDefault keydown
|
40
|
+
</div>
|
41
|
+
<div>
|
42
|
+
Type [c]
|
43
|
+
<input id='keyPressPrevent' /> - preventDefault keypress
|
44
|
+
</div>
|
45
|
+
<div>
|
46
|
+
Type [tab]
|
47
|
+
<input id='t_\\t' /><input id='t_tab2' />
|
48
|
+
</div>
|
49
|
+
<div>
|
50
|
+
Type [pause-break]
|
51
|
+
<input id='t_pause-break' />
|
52
|
+
</div>
|
53
|
+
<div>
|
54
|
+
Type [caps]
|
55
|
+
<input id='t_caps' />
|
56
|
+
</div>
|
57
|
+
<div>
|
58
|
+
Type [escape]
|
59
|
+
<input id='t_escape' />
|
60
|
+
</div>
|
61
|
+
<div>
|
62
|
+
Type [num-lock]
|
63
|
+
<input id='t_num-lock' />
|
64
|
+
</div>
|
65
|
+
<div>
|
66
|
+
Type [scrolllock]
|
67
|
+
<input id='t_scroll-lock' />
|
68
|
+
</div>
|
69
|
+
<div>
|
70
|
+
Type [print]
|
71
|
+
<input id='t_print' />
|
72
|
+
</div>
|
73
|
+
<div>
|
74
|
+
Type [f8]
|
75
|
+
<input id='t_f8' /> - function
|
76
|
+
</div>
|
77
|
+
|
78
|
+
<div id='leftClick'>
|
79
|
+
Left Click Me
|
80
|
+
</div>
|
81
|
+
<div id='rightClick'>
|
82
|
+
Right Click Me
|
83
|
+
</div>
|
84
|
+
<div id='dblClick'>
|
85
|
+
Double Click Me
|
86
|
+
</div>
|
87
|
+
<h3>Key Data</h3>
|
88
|
+
<pre id='out'></pre>
|
89
|
+
<h3>Click Data</h3>
|
90
|
+
<pre id='clickdata'></pre>
|
91
|
+
<script type='text/javascript' src='../../steal/steal.js'></script>
|
92
|
+
<script type='text/javascript'>
|
93
|
+
steal.plugins('funcunit/synthetic','jquery','jquery/lang/json').start();
|
94
|
+
</script>
|
95
|
+
<script type='text/javascript' id="demo-source">
|
96
|
+
var gId = function(id){
|
97
|
+
return document.getElementById(id)
|
98
|
+
},
|
99
|
+
bind = function(el, ev, func){
|
100
|
+
Syn.bind(gId(el.replace("\\","\\\\")), ev,func);
|
101
|
+
};
|
102
|
+
$(function(){
|
103
|
+
$("#ua").html(window.navigator.userAgent)
|
104
|
+
});
|
105
|
+
|
106
|
+
var keycodes = Syn.keycodes,
|
107
|
+
special = {
|
108
|
+
backspace : "\b",
|
109
|
+
tab : "\t",
|
110
|
+
enter : "\r"
|
111
|
+
},
|
112
|
+
convert = {
|
113
|
+
"\\r" : "\r",
|
114
|
+
"\\t" :"\t",
|
115
|
+
"\\b" : "\b"
|
116
|
+
}
|
117
|
+
|
118
|
+
isKey = function(str, val){
|
119
|
+
str = convert[str] || str;
|
120
|
+
return keycodes[str] === String(val)
|
121
|
+
}
|
122
|
+
isChar = function(str, val){
|
123
|
+
str = convert[str] || str;
|
124
|
+
return val && (special[str] || str).charCodeAt(0) == val
|
125
|
+
}
|
126
|
+
keyOrChar = function(str, val){
|
127
|
+
return isKey(str,val) ? "key" :
|
128
|
+
(isChar(str, val) ? "char" : val)
|
129
|
+
}
|
130
|
+
tests= ['prevent']
|
131
|
+
data= {
|
132
|
+
prevent :{
|
133
|
+
keyup : [],
|
134
|
+
keydown : [],
|
135
|
+
keypress :[]
|
136
|
+
}
|
137
|
+
};
|
138
|
+
|
139
|
+
binder = function(name,test){
|
140
|
+
//listen for events
|
141
|
+
test = test || name;
|
142
|
+
var testData = (data[test] = {}),
|
143
|
+
keydown = 0,
|
144
|
+
keypress= 0
|
145
|
+
keyup = 0;
|
146
|
+
|
147
|
+
bind('t_'+name,'keydown', function(ev){
|
148
|
+
testData.keydown = [ (isChar(name, ev.charCode) ? "char" : ev.charCode),
|
149
|
+
keyOrChar(name, ev.keyCode)];
|
150
|
+
keydown++
|
151
|
+
if(keydown ==2 ){
|
152
|
+
//testData.repeat.push('keydown')
|
153
|
+
}
|
154
|
+
})
|
155
|
+
|
156
|
+
bind('t_'+name,'keypress', function(ev){
|
157
|
+
testData.keypress = [ (isChar(name, ev.charCode) ? "char" : ev.charCode),
|
158
|
+
keyOrChar(name, ev.keyCode)]
|
159
|
+
|
160
|
+
keypress++;
|
161
|
+
|
162
|
+
if(keypress ==2 ){
|
163
|
+
//testData.repeat.push('keypress')
|
164
|
+
}
|
165
|
+
update();
|
166
|
+
})
|
167
|
+
|
168
|
+
bind('t_'+name,'keyup', function(ev){
|
169
|
+
testData.keyup = [ (isChar(name, ev.charCode) ? "char" : ev.charCode),
|
170
|
+
keyOrChar(name, ev.keyCode)]
|
171
|
+
keyup++;
|
172
|
+
if(keyup ==2 ){
|
173
|
+
//testData.repeat.push('keyup')
|
174
|
+
}
|
175
|
+
|
176
|
+
update();
|
177
|
+
|
178
|
+
})
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
$('#t_'+name).val("")
|
183
|
+
tests.push(test)
|
184
|
+
}
|
185
|
+
binder('a','character')
|
186
|
+
binder('\\b','specialChars')
|
187
|
+
binder('down','navigation')
|
188
|
+
binder('shift','special')
|
189
|
+
binder('\\t')
|
190
|
+
bind('t_tab2','keyup', function(ev){
|
191
|
+
data["\\t"].keyup = [ (isChar("\\t", ev.charCode) ? "char" : ev.charCode),
|
192
|
+
keyOrChar("\\t", ev.keyCode)]
|
193
|
+
update();
|
194
|
+
})
|
195
|
+
binder('pause-break')
|
196
|
+
binder('caps')
|
197
|
+
binder('escape')
|
198
|
+
binder('num-lock')
|
199
|
+
binder('scroll-lock')
|
200
|
+
binder('print')
|
201
|
+
binder('f8','function')
|
202
|
+
binder('\\r')
|
203
|
+
var pd = function(ev){
|
204
|
+
if(ev.preventDefault)
|
205
|
+
ev.preventDefault();
|
206
|
+
|
207
|
+
ev.returnValue = false;
|
208
|
+
}
|
209
|
+
var keyDown_keyPressed = false
|
210
|
+
bind('keyUpPrevent','keydown', function(ev){
|
211
|
+
pd(ev);
|
212
|
+
setTimeout(function(){
|
213
|
+
if($('#keyUpPrevent').val() !== 'b'){
|
214
|
+
data.prevent.keydown.push('char')
|
215
|
+
}
|
216
|
+
if(!keyDown_keyPressed){
|
217
|
+
data.prevent.keydown.push('keypress')
|
218
|
+
}
|
219
|
+
update();
|
220
|
+
},1000)
|
221
|
+
})
|
222
|
+
bind('keyUpPrevent','keypress', function(ev){
|
223
|
+
keyDown_keyPressed = true;
|
224
|
+
})
|
225
|
+
|
226
|
+
|
227
|
+
var keyPress_keyUp = false
|
228
|
+
bind('keyPressPrevent','keypress', function(ev){
|
229
|
+
pd(ev);
|
230
|
+
setTimeout(function(){
|
231
|
+
if($('#keyPressPrevent').val() !== 'c'){
|
232
|
+
data.prevent.keypress.push('char')
|
233
|
+
}
|
234
|
+
if(!keyPress_keyUp){
|
235
|
+
data.prevent.keypress.push('keyup')
|
236
|
+
}
|
237
|
+
update();
|
238
|
+
},1000)
|
239
|
+
})
|
240
|
+
bind('keyPressPrevent','keyup', function(ev){
|
241
|
+
keyPress_keyUp = true;
|
242
|
+
})
|
243
|
+
|
244
|
+
|
245
|
+
var clickData = {
|
246
|
+
right : {},
|
247
|
+
left : {},
|
248
|
+
dblclick :{}
|
249
|
+
}
|
250
|
+
$.each(['right','left'], function(i, name){
|
251
|
+
|
252
|
+
bind(name+'Click','mousedown',function(ev){
|
253
|
+
clickData[name].mousedown = {
|
254
|
+
button: ev.button,
|
255
|
+
which: ev.which
|
256
|
+
}
|
257
|
+
})
|
258
|
+
bind(name+'Click','mouseup',function(ev){
|
259
|
+
clickData[name].mouseup = {
|
260
|
+
button: ev.button,
|
261
|
+
which: ev.which
|
262
|
+
}
|
263
|
+
setTimeout(function(){
|
264
|
+
$('#clickdata').html($.toJSON(clickData))
|
265
|
+
},100)
|
266
|
+
})
|
267
|
+
bind(name+'Click','click',function(ev){
|
268
|
+
clickData[name].click = {
|
269
|
+
button: ev.button,
|
270
|
+
which: ev.which
|
271
|
+
}
|
272
|
+
})
|
273
|
+
bind(name+'Click','contextmenu',function(ev){
|
274
|
+
clickData[name].contextmenu = {
|
275
|
+
button: ev.button,
|
276
|
+
which: ev.which
|
277
|
+
}
|
278
|
+
})
|
279
|
+
|
280
|
+
})
|
281
|
+
var dblClicks = 0
|
282
|
+
bind('dblClick','click',function(ev){
|
283
|
+
clickData.dblclick.click = (++dblClicks)
|
284
|
+
})
|
285
|
+
bind('dblClick','dblclick',function(ev){
|
286
|
+
clickData.dblclick.dblclick = (1)
|
287
|
+
setTimeout(function(){
|
288
|
+
$('#clickdata').html($.toJSON(clickData))
|
289
|
+
},100)
|
290
|
+
})
|
291
|
+
update = function(){
|
292
|
+
var str = [];
|
293
|
+
$.each(tests, function(i, sub){
|
294
|
+
str.push("'"+sub+ "':<br/> "+$.toJSON(data[sub])+",")
|
295
|
+
})
|
296
|
+
|
297
|
+
$('#out').html(str.join("<br/>"))
|
298
|
+
}
|
299
|
+
|
300
|
+
|
301
|
+
</script>
|
302
|
+
</body>
|
303
|
+
</html>
|