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
Binary file
|
@@ -0,0 +1,31 @@
|
|
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>error</title>
|
6
|
+
<style type='text/css'>
|
7
|
+
body {font-family: verdana}
|
8
|
+
.error {border: solid 1px red;}
|
9
|
+
.error_text { color: red; font-size: 10px;}
|
10
|
+
td {padding: 3px;}
|
11
|
+
</style>
|
12
|
+
</head>
|
13
|
+
<body>
|
14
|
+
<a href='#' onclick='breakme()'>Click here to cause an error</a>
|
15
|
+
<p>Remember to replace APPLICATION_KEY in the script tag with your actual application key!</p>
|
16
|
+
<!-- Replace APPLICATION_KEY with your actual application key -->
|
17
|
+
<script type='text/javascript'
|
18
|
+
src='../../steal/steal.js?steal[app]=jquery/error&steal[env]=development'>
|
19
|
+
</script>
|
20
|
+
<script type='text/javascript'>
|
21
|
+
APPLICATION_KEY = '917a26e1a436665327ec4c5faf4d823248a05f1d'
|
22
|
+
var breakme = function(){
|
23
|
+
try {
|
24
|
+
a.func.that.will.brea.k();
|
25
|
+
} catch(e) {
|
26
|
+
$.ApplicationError.notify(e);
|
27
|
+
}
|
28
|
+
}
|
29
|
+
</script>
|
30
|
+
</body>
|
31
|
+
</html>
|
@@ -0,0 +1,227 @@
|
|
1
|
+
steal.plugins('jquery/class', 'jquery').then(function(){
|
2
|
+
|
3
|
+
if (true || steal.options.env == 'production') {
|
4
|
+
var seconds_remaining;
|
5
|
+
var timer;
|
6
|
+
|
7
|
+
$.ApplicationError = {
|
8
|
+
textarea_text: "type description here",
|
9
|
+
textarea_title: "Damn It!",
|
10
|
+
close_time: 10,
|
11
|
+
url: 'https://damnit.jupiterit.com',
|
12
|
+
prompt_text: "Something just went wrong. Please describe " +
|
13
|
+
"your most recent actions and let us know what " +
|
14
|
+
"happened. We'll fix the problem.",
|
15
|
+
prompt_user: true,
|
16
|
+
generate_content: function( params ) {
|
17
|
+
var content = [];
|
18
|
+
// intentionally put HTML Content at the end
|
19
|
+
for (var attr in params) {
|
20
|
+
if (params.hasOwnProperty(attr) && attr != 'toString' && attr != 'HTML Content')
|
21
|
+
content.push(attr + ':\n ' + params[attr]);
|
22
|
+
}
|
23
|
+
if (params['HTML Content'])
|
24
|
+
content.push('HTML Content' + ':\n ' + params['HTML Content']);
|
25
|
+
return content.join('\n');
|
26
|
+
},
|
27
|
+
config: function( params ) {
|
28
|
+
$.extend($.ApplicationError, params);
|
29
|
+
},
|
30
|
+
create_send_function: function( error ) {
|
31
|
+
$.ApplicationError.send = function(ev){
|
32
|
+
var params = {
|
33
|
+
error: {}
|
34
|
+
}, description = $('#_error_text');
|
35
|
+
params.error.subject = error.subject;
|
36
|
+
if (description.length)
|
37
|
+
error['User Description'] = description.val();
|
38
|
+
if ($.ApplicationError.prompt_user) {
|
39
|
+
$.ApplicationError.pause_count_down();
|
40
|
+
document.body.removeChild($('#_application_error')[0]);
|
41
|
+
}
|
42
|
+
params.error.content = $.ApplicationError.generate_content(error);
|
43
|
+
ev.stopPropagation();
|
44
|
+
ev.preventDefault();
|
45
|
+
params.user_crypted_key = APPLICATION_KEY;
|
46
|
+
params.referer = location.href;
|
47
|
+
params._method = "POST";
|
48
|
+
$.ajax({
|
49
|
+
url: $.ApplicationError.url + "/errors.json",
|
50
|
+
dataType: "jsonp",
|
51
|
+
data: params
|
52
|
+
})
|
53
|
+
};
|
54
|
+
},
|
55
|
+
create_dom: function( error ) {
|
56
|
+
if ($('#_application_error').length) return;
|
57
|
+
var div = $('<div />').attr('id', '_application_error').css({
|
58
|
+
position: $.browser.mozilla ? 'fixed' : 'absolute',
|
59
|
+
bottom: '0px',
|
60
|
+
left: '0px',
|
61
|
+
margin: '0px'
|
62
|
+
})
|
63
|
+
var title = $('<div />').addClass('ui-corner-top').addClass('ui-state-error').css({
|
64
|
+
padding: '0px 5px 0px 10px'
|
65
|
+
})
|
66
|
+
|
67
|
+
var a = $('<a />').css({
|
68
|
+
'float': 'right',
|
69
|
+
width: 50,
|
70
|
+
'text-decoration': 'underline',
|
71
|
+
color: 'Red',
|
72
|
+
'padding-left': 25,
|
73
|
+
'font-size': '8pt',
|
74
|
+
cursor: 'pointer'
|
75
|
+
}).click($.ApplicationError.send).html('Close')
|
76
|
+
var span = $('<span />').attr('id', '_error_seconds').css({
|
77
|
+
'float': 'right',
|
78
|
+
'font-size': '8pt'
|
79
|
+
}).after(this.textarea_title);
|
80
|
+
|
81
|
+
title.append(a).append(span).append('<span>' + this.textarea_title + '</span>');
|
82
|
+
|
83
|
+
var form = $('<form />').attr('id', '_error_form').addClass('ui-state-highlight ')
|
84
|
+
.submit($.ApplicationError.send).css({
|
85
|
+
padding: 0,
|
86
|
+
margin: 0,
|
87
|
+
font: 'normal 8pt verdana'
|
88
|
+
});
|
89
|
+
|
90
|
+
var form_div = $('<div />').css({
|
91
|
+
'float': 'left',
|
92
|
+
width: 300,
|
93
|
+
'margin-left': $.browser.msie ? 5 : 10
|
94
|
+
}).html(this.prompt_text)
|
95
|
+
var input = $('<button />').addClass('ui-button').addClass('ui-state-default')
|
96
|
+
.addClass('ui-widget').addClass('ui-state-default').addClass('ui-corner-all')
|
97
|
+
.addClass('ui-button-text-only').css({
|
98
|
+
'float': 'right',
|
99
|
+
margin: '17px 5px 0px 0px'
|
100
|
+
}).append('<span>Send</span>')
|
101
|
+
var input2 = $('<input />').attr({
|
102
|
+
type: 'submit',
|
103
|
+
value: 'Send'
|
104
|
+
})
|
105
|
+
var textarea = $('<textarea />').css({
|
106
|
+
width: 335,
|
107
|
+
color: 'gray'
|
108
|
+
}).attr({
|
109
|
+
rows: $.browser.mozilla ? 2 : 3,
|
110
|
+
name: 'description',
|
111
|
+
id: '_error_text'
|
112
|
+
}).focus(function(){
|
113
|
+
var area = $('#_error_text');
|
114
|
+
if (area.val() == $.ApplicationError.textarea_text)
|
115
|
+
area.val('');
|
116
|
+
area.css('color', 'black');
|
117
|
+
$.ApplicationError.pause_count_down();
|
118
|
+
}).html(this.textarea_text)
|
119
|
+
form.append(form_div).append(input.after(textarea));
|
120
|
+
|
121
|
+
div.append(title).append(form);
|
122
|
+
$(document.body).append(div);
|
123
|
+
this.set_width();
|
124
|
+
},
|
125
|
+
notify: function( e ) {
|
126
|
+
e = $.ApplicationError.transform_error(e);
|
127
|
+
$.extend(e, {
|
128
|
+
'Browser': navigator.userAgent,
|
129
|
+
'Page': location.href,
|
130
|
+
'HTML Content': document.documentElement.innerHTML.replace(/\n/g, "\n ").replace(/\t/g, " ").substring(0, 5000)
|
131
|
+
});
|
132
|
+
if (Error && new Error().stack)
|
133
|
+
e.Stack = new Error().stack;
|
134
|
+
if (!e.subject)
|
135
|
+
e.subject = 'ApplicationError on: ' + window.location.href;
|
136
|
+
this.create_send_function(e);
|
137
|
+
if ($.ApplicationError.prompt_user == true)
|
138
|
+
this.create_dom(e);
|
139
|
+
else
|
140
|
+
this.send();
|
141
|
+
return false;
|
142
|
+
},
|
143
|
+
set_width: function() {
|
144
|
+
var cont = $('#_application_error'), width;
|
145
|
+
if (!cont.length)
|
146
|
+
return;
|
147
|
+
width = $(document.body).outerWidth(true);
|
148
|
+
cont.width(width);
|
149
|
+
$('#_error_text').width(width - 400);
|
150
|
+
},
|
151
|
+
transform_error: function( error ) {
|
152
|
+
if (typeof error == 'string') {
|
153
|
+
var old = error;
|
154
|
+
error = {
|
155
|
+
toString: function() {
|
156
|
+
return old;
|
157
|
+
}
|
158
|
+
};
|
159
|
+
error.message = old;
|
160
|
+
}
|
161
|
+
if ($.browser.opera && error.message) {
|
162
|
+
var error_arr = error.message.match('Backtrace');
|
163
|
+
if (error_arr) {
|
164
|
+
var message = error.message;
|
165
|
+
error.message = message.substring(0, error_arr.index);
|
166
|
+
error.backtrace = message.substring(error_arr.index + 11, message.length);
|
167
|
+
}
|
168
|
+
}
|
169
|
+
return error;
|
170
|
+
},
|
171
|
+
count_down: function() {
|
172
|
+
seconds_remaining--;
|
173
|
+
$('#_error_seconds').html('This will close in ' + seconds_remaining + ' seconds.');
|
174
|
+
if (seconds_remaining == 0) {
|
175
|
+
$.ApplicationError.pause_count_down();
|
176
|
+
$.ApplicationError.send();
|
177
|
+
}
|
178
|
+
},
|
179
|
+
start_count_down: function() {
|
180
|
+
seconds_remaining = this.close_time;
|
181
|
+
$('#_error_seconds').html('This will close in ' + seconds_remaining + ' seconds.');
|
182
|
+
timer = setInterval($.ApplicationError.count_down, 1000);
|
183
|
+
},
|
184
|
+
pause_count_down: function() {
|
185
|
+
clearInterval(timer);
|
186
|
+
timer = null;
|
187
|
+
$('#_error_seconds').html('');
|
188
|
+
}
|
189
|
+
};
|
190
|
+
|
191
|
+
//$.ApplicationError.start_count_down();
|
192
|
+
|
193
|
+
var oldCB = jQuery.Class.callback;
|
194
|
+
jQuery.Class.callback = function(f_names){
|
195
|
+
var oldCBFunc = oldCB.apply(this, arguments), newCBFunc = function(){
|
196
|
+
try {
|
197
|
+
return oldCBFunc.apply(this, arguments);
|
198
|
+
}
|
199
|
+
catch (e) {
|
200
|
+
e = $.ApplicationError.transform_error(e);
|
201
|
+
|
202
|
+
$.extend(e, {
|
203
|
+
'Controller': instance.klass.className,
|
204
|
+
'Action': action_name,
|
205
|
+
subject: 'Dispatch Error: ' + ((e.message && typeof(e.message) == 'string') ? e.message : e.toString())
|
206
|
+
});
|
207
|
+
$.ApplicationError.notify(e);
|
208
|
+
return false;
|
209
|
+
}
|
210
|
+
}
|
211
|
+
return newCBFunc;
|
212
|
+
}
|
213
|
+
|
214
|
+
$(window).resize($.ApplicationError.set_width)
|
215
|
+
$(window).error(function(msg, url, l){
|
216
|
+
var e = {
|
217
|
+
message: msg,
|
218
|
+
fileName: url,
|
219
|
+
lineNumber: l
|
220
|
+
};
|
221
|
+
$.ApplicationError.notify(e);
|
222
|
+
return false;
|
223
|
+
})
|
224
|
+
$('head').append('<link rel="stylesheet" href="'+steal.root.path+
|
225
|
+
(steal.root.path == "/"? '': '/') +'phui/smoothness/jquery-ui-1.7.2.custom.css" type="text/css" />');
|
226
|
+
}
|
227
|
+
})
|
@@ -0,0 +1,23 @@
|
|
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>test</title>
|
6
|
+
<style type='text/css'>
|
7
|
+
body {font-family: verdana}
|
8
|
+
.error {border: solid 1px red;}
|
9
|
+
.error_text { color: red; font-size: 10px;}
|
10
|
+
td {padding: 3px;}
|
11
|
+
</style>
|
12
|
+
</head>
|
13
|
+
<body>
|
14
|
+
<h1>Welcome to JavaScriptMVC 3.0!</h1>
|
15
|
+
<ul>
|
16
|
+
<li>Include plugins and files in <i>jquery/error/test/test.js</i>.</li>
|
17
|
+
<li>Change to production mode by changing <i>development</i> to <i>production</i> in this file.</li>
|
18
|
+
</ul>
|
19
|
+
<script type='text/javascript'
|
20
|
+
src='../../../steal/steal.js?steal[app]=jquery/error/test&steal[env]=development'>
|
21
|
+
</script>
|
22
|
+
</body>
|
23
|
+
</html>
|
@@ -0,0 +1,85 @@
|
|
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>default</title>
|
6
|
+
<style type='text/css'>
|
7
|
+
body {font-family: verdana}
|
8
|
+
.error {border: solid 1px red;}
|
9
|
+
.error_text { color: red; font-size: 10px;}
|
10
|
+
td {padding: 3px;}
|
11
|
+
.clickme {
|
12
|
+
padding: 5px; margin: 5px;
|
13
|
+
border: dashed 1px red;
|
14
|
+
width: 100px;
|
15
|
+
}
|
16
|
+
ul li {
|
17
|
+
float: left;
|
18
|
+
border: solid 1px red;
|
19
|
+
padding: 5px;
|
20
|
+
list-style: none;
|
21
|
+
}
|
22
|
+
ul { margin: 0px; padding: 0px;}
|
23
|
+
.tab {
|
24
|
+
clear: both;
|
25
|
+
border: solid 1px black;
|
26
|
+
padding: 10px;
|
27
|
+
}
|
28
|
+
</style>
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
|
32
|
+
<h1>Default Events</h1>
|
33
|
+
<p>A tabs widget that doesn't let you continue until the first part is complete.</p>
|
34
|
+
<div id="demo-html">
|
35
|
+
<div id='tabs'>
|
36
|
+
<ul>
|
37
|
+
<li><a href='#first'>Part 1</a></li>
|
38
|
+
<li><a href='#second'>Part 2</a></li>
|
39
|
+
</ul>
|
40
|
+
<div id='first' class='tab'>
|
41
|
+
<input type='checkbox' id='complete'/> Check to complete this part.
|
42
|
+
</div>
|
43
|
+
<div id='second' class='tab'>
|
44
|
+
You completed part 1
|
45
|
+
</div>
|
46
|
+
</div>
|
47
|
+
</div>
|
48
|
+
|
49
|
+
|
50
|
+
<script type='text/javascript'
|
51
|
+
src='../../../steal/steal.js'>
|
52
|
+
</script>
|
53
|
+
<script id="demo-source" type='text/javascript'>
|
54
|
+
steal.plugins("jquery/controller",'jquery/event/default').then(function($){
|
55
|
+
$.Controller.extend("Tabs",{
|
56
|
+
init : function(){
|
57
|
+
this.find("li:first").addClass('active')
|
58
|
+
this.find(".tab:gt(0)").hide();
|
59
|
+
},
|
60
|
+
"li click" : function(el, ev){
|
61
|
+
ev.preventDefault();
|
62
|
+
if(!el.hasClass('active') && this.sub(el).triggerDefaults("show")){
|
63
|
+
this.sub(this.find(".active").removeClass("active")).hide();
|
64
|
+
el.addClass("active")
|
65
|
+
}
|
66
|
+
},
|
67
|
+
sub : function(el){
|
68
|
+
return $(el.find("a").attr("href"))
|
69
|
+
},
|
70
|
+
".tab default.show" : function(el){
|
71
|
+
el.show();
|
72
|
+
}
|
73
|
+
})
|
74
|
+
|
75
|
+
$("#tabs").tabs();
|
76
|
+
$("#second").bind("show",function(ev){
|
77
|
+
if(! $("#complete")[0].checked ){
|
78
|
+
ev.preventDefault();
|
79
|
+
}
|
80
|
+
})
|
81
|
+
|
82
|
+
}).start();
|
83
|
+
</script>
|
84
|
+
</body>
|
85
|
+
</html>
|
@@ -0,0 +1,193 @@
|
|
1
|
+
/**
|
2
|
+
* @add jQuery.event.special static
|
3
|
+
*/
|
4
|
+
steal.plugins('jquery/event').then(function($){
|
5
|
+
|
6
|
+
//cache default types for performance
|
7
|
+
var types = {}, rnamespaces= /\.(.*)$/;
|
8
|
+
/**
|
9
|
+
* @attribute default
|
10
|
+
* @parent specialevents
|
11
|
+
* @plugin jquery/event/default
|
12
|
+
* @download jquery/dist/jquery.event.default.js
|
13
|
+
* @test jquery/event/default/qunit.html
|
14
|
+
* Allows you to perform default actions as a result of an event.
|
15
|
+
* <p>
|
16
|
+
* Event based APIs are a powerful way of exposing functionality of your widgets. It also fits in
|
17
|
+
* quite nicely with how the DOM works.
|
18
|
+
* </p>
|
19
|
+
* <p>
|
20
|
+
* Like default events in normal functions (e.g. submitting a form), synthetic default events run after
|
21
|
+
* all event handlers have been triggered and no event handler has called
|
22
|
+
* preventDefault or returned false.
|
23
|
+
* </p>
|
24
|
+
* <p>To listen for a default event, just prefix the event with default.</p>
|
25
|
+
* @codestart
|
26
|
+
* $("div").bind("default.show", function(ev){ ... });
|
27
|
+
* $("ul").delegate("li","default.activate", function(ev){ ... });
|
28
|
+
* @codeend
|
29
|
+
* <p>
|
30
|
+
* The default plugin also adds the [jQuery.fn.triggerDefault triggerDefault] and [jQuery.fn.triggerDefaults triggerDefaults] methods. These are used to trigger
|
31
|
+
* an event and report back whether preventDefault was called on the event. The only difference is [jQuery.fn.triggerDefault triggerDefault]
|
32
|
+
* doesn't bubble.
|
33
|
+
* </p>
|
34
|
+
* <h2>Example</h2>
|
35
|
+
* <p>Lets look at how you could build a simple tabs widget with default events.
|
36
|
+
* First with just jQuery:</p>
|
37
|
+
* <p>
|
38
|
+
* Default events are useful in cases where you want to provide an event based
|
39
|
+
* API for users of your widgets. Users can simply listen to your synthetic events and
|
40
|
+
* prevent your default functionality by calling preventDefault.
|
41
|
+
* </p>
|
42
|
+
* <p>
|
43
|
+
* In the example below, the tabs widget provides a show event. Users of the
|
44
|
+
* tabs widget simply listen for show, and if they wish for some reason, call preventDefault
|
45
|
+
* to avoid showing the tab.
|
46
|
+
* </p>
|
47
|
+
* <p>
|
48
|
+
* In this case, the application developer doesn't want to show the second
|
49
|
+
* tab until the checkbox is checked.
|
50
|
+
* </p>
|
51
|
+
* @demo jquery/event/default/defaultjquery.html
|
52
|
+
* <p>Lets see how we would build this with JavaScriptMVC:</p>
|
53
|
+
* @demo jquery/event/default/default.html
|
54
|
+
*/
|
55
|
+
$.event.special["default"] = {
|
56
|
+
add: function( handleObj ) {
|
57
|
+
//save the type
|
58
|
+
types[handleObj.namespace.replace(rnamespaces,"")] = true;
|
59
|
+
|
60
|
+
//move the handler ...
|
61
|
+
var origHandler = handleObj.handler;
|
62
|
+
|
63
|
+
handleObj.origHandler = origHandler;
|
64
|
+
handleObj.handler = function(ev, data){
|
65
|
+
if(!ev._defaultActions) ev._defaultActions = [];
|
66
|
+
ev._defaultActions.push({element: this, handler: origHandler, event: ev, data: data, currentTarget: ev.currentTarget})
|
67
|
+
}
|
68
|
+
},
|
69
|
+
setup: function() {return true}
|
70
|
+
}
|
71
|
+
|
72
|
+
// overwrite trigger to allow default types
|
73
|
+
var oldTrigger = $.event.trigger;
|
74
|
+
$.event.trigger = function defaultTriggerer( event, data, elem, bubbling){
|
75
|
+
//always need to convert here so we know if we have default actions
|
76
|
+
var type = event.type || event
|
77
|
+
|
78
|
+
if ( !bubbling ) {
|
79
|
+
event = typeof event === "object" ?
|
80
|
+
// jQuery.Event object
|
81
|
+
event[$.expando] ? event :
|
82
|
+
// Object literal
|
83
|
+
jQuery.extend( jQuery.Event(type), event ) :
|
84
|
+
// Just the event type (string)
|
85
|
+
jQuery.Event(type);
|
86
|
+
|
87
|
+
if ( type.indexOf("!") >= 0 ) {
|
88
|
+
event.type = type = type.slice(0, -1);
|
89
|
+
event.exclusive = true;
|
90
|
+
}
|
91
|
+
event._defaultActions = []; //set depth for possibly reused events
|
92
|
+
}
|
93
|
+
|
94
|
+
var defaultGetter = jQuery.Event("default."+event.type),
|
95
|
+
res;
|
96
|
+
|
97
|
+
$.extend(defaultGetter,{
|
98
|
+
target: elem,
|
99
|
+
_defaultActions: event._defaultActions,
|
100
|
+
exclusive : true
|
101
|
+
});
|
102
|
+
|
103
|
+
defaultGetter.stopPropagation();
|
104
|
+
|
105
|
+
//default events only work on elements
|
106
|
+
if(elem){
|
107
|
+
oldTrigger.call($.event, defaultGetter, [defaultGetter, data], elem, true);
|
108
|
+
}
|
109
|
+
|
110
|
+
//fire old trigger, this will call back here
|
111
|
+
res = oldTrigger.call($.event, event, data, elem, bubbling);
|
112
|
+
|
113
|
+
//fire if there are default actions to run &&
|
114
|
+
// we have not prevented default &&
|
115
|
+
// propagation has been stopped or we are at the document element
|
116
|
+
// we have reached the document
|
117
|
+
if (!event.isDefaultPrevented() &&
|
118
|
+
event._defaultActions &&
|
119
|
+
( ( event.isPropagationStopped() ) ||
|
120
|
+
( !elem.parentNode && !elem.ownerDocument ) )
|
121
|
+
|
122
|
+
) {
|
123
|
+
|
124
|
+
// put event back
|
125
|
+
event.namespace= event.type;
|
126
|
+
event.type = "default";
|
127
|
+
event.liveFired = null;
|
128
|
+
|
129
|
+
// call each event handler
|
130
|
+
for(var i = 0 ; i < event._defaultActions.length; i++){
|
131
|
+
var a = event._defaultActions[i],
|
132
|
+
oldHandle = event.handled;
|
133
|
+
event.currentTarget = a.currentTarget;
|
134
|
+
a.handler.call(a.element, event, a.data);
|
135
|
+
event.handled = event.handled === null ? oldHandle : true;
|
136
|
+
}
|
137
|
+
event._defaultActions = null; //set to null so everyone else on this element ignores it
|
138
|
+
}
|
139
|
+
}
|
140
|
+
/**
|
141
|
+
* @add jQuery.fn
|
142
|
+
*/
|
143
|
+
$.fn.
|
144
|
+
/**
|
145
|
+
* Triggers the event, stops the event from propagating through the DOM, and
|
146
|
+
* returns whether or not the event's default action was prevented.
|
147
|
+
* If true, the default action was not prevented. If false, the
|
148
|
+
* default action was prevented. This is the same as triggerDefaults, but
|
149
|
+
* the event doesn't bubble. Use these methods to easily determine if default was
|
150
|
+
* prevented, and proceed accordingly.
|
151
|
+
*
|
152
|
+
* <p>Widget developers might use this method to perform additional logic if an event
|
153
|
+
* handler doesn't prevent the default action. For example, a tabs widget might
|
154
|
+
* hide the currently shown tab if the application developer doesn't prevent default.</p>
|
155
|
+
* @param {Object} type The type of event to trigger.
|
156
|
+
* @param {Object} data Some data to pass to callbacks listening to this
|
157
|
+
* event.
|
158
|
+
*/
|
159
|
+
triggerDefault = function(type, data){
|
160
|
+
if ( this[0] ) {
|
161
|
+
var event = $.Event( type );
|
162
|
+
event.stopPropagation();
|
163
|
+
jQuery.event.trigger( event, data, this[0] );
|
164
|
+
return !event.isDefaultPrevented();
|
165
|
+
}
|
166
|
+
return true;
|
167
|
+
}
|
168
|
+
$.fn.
|
169
|
+
/**
|
170
|
+
* Triggers the event and returns whether or not the event's
|
171
|
+
* default action was prevented. If true, the default action was not
|
172
|
+
* prevented. If false, the default action was prevented. This is the same
|
173
|
+
* as triggerDefault, but the event bubbles. Use these methods to easily determine if default was
|
174
|
+
* prevented, and proceed accordingly.
|
175
|
+
* @param {Object} type The type of event to trigger.
|
176
|
+
* @param {Object} data Some data to pass to callbacks listening to this
|
177
|
+
* event.
|
178
|
+
*/
|
179
|
+
triggerDefaults = function(type, data){
|
180
|
+
if ( this[0] ) {
|
181
|
+
var event = $.Event( type );
|
182
|
+
jQuery.event.trigger( event, data, this[0] );
|
183
|
+
return !event.isDefaultPrevented();
|
184
|
+
}
|
185
|
+
return true;
|
186
|
+
}
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
});
|