yui-rails-asset 2.8.1
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +21 -0
- data/README +17 -0
- data/lib/yui/rails.rb +29 -0
- data/lib/yui/rails/engine.rb +10 -0
- data/lib/yui/rails/version.rb +6 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/animation/animation-debug.js +1396 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/animation/animation-min.js +23 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/animation/animation.js +1392 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/ajax-loader.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/asc.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/autocomplete.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/back-h.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/back-v.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/bar-h.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/bar-v.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/bg-h.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/bg-v.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/blankimage.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/button.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/calendar.css +8 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/carousel.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/check0.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/check1.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/check2.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/colorpicker.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/container.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/datatable.css +8 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/desc.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/dt-arrow-dn.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/dt-arrow-up.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/editor-knob.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/editor-sprite-active.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/editor-sprite.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/editor.css +10 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/header_background.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/hue_bg.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/imagecropper.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/layout.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/layout_sprite.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/loading.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/logger.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menu-button-arrow-disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menu-button-arrow.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menu.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menubaritem_submenuindicator.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menubaritem_submenuindicator_disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menuitem_checkbox.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menuitem_checkbox_disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menuitem_submenuindicator.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/menuitem_submenuindicator_disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/paginator.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/picker_mask.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/profilerviewer.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/progressbar.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/resize.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/simpleeditor.css +10 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/skin.css +36 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/slider.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/split-button-arrow-active.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/split-button-arrow-disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/split-button-arrow-focus.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/split-button-arrow-hover.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/split-button-arrow.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/sprite.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/sprite.psd +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/tabview.css +8 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/treeview-loading.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/treeview-sprite.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/treeview.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/wait.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/assets/skins/sam/yuitest.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/autocomplete/assets/autocomplete-core.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/autocomplete/assets/skins/sam/autocomplete-skin.css +57 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/autocomplete/assets/skins/sam/autocomplete.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/autocomplete/autocomplete-debug.js +3009 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/autocomplete/autocomplete-min.js +12 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/autocomplete/autocomplete.js +2966 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/base/base-min.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/base/base.css +131 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/button-core.css +44 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/button-skin.css +219 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/button.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/menu-button-arrow-disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/menu-button-arrow.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/split-button-arrow-active.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/split-button-arrow-disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/split-button-arrow-focus.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/split-button-arrow-hover.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/button/assets/skins/sam/split-button-arrow.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/button/button-debug.js +4694 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/button/button-min.js +11 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/button/button.js +4633 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/calendar/assets/calendar-core.css +132 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/calendar/assets/calendar.css +320 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/calendar/assets/calgrad.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/calendar/assets/callt.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/calendar/assets/calrt.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/calendar/assets/calx.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/calendar/assets/skins/sam/calendar-skin.css +361 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/calendar/assets/skins/sam/calendar.css +8 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/calendar/calendar-debug.js +7324 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/calendar/calendar-min.js +18 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/calendar/calendar.js +7294 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/carousel/assets/ajax-loader.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/carousel/assets/carousel-core.css +88 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/carousel/assets/skins/sam/ajax-loader.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/carousel/assets/skins/sam/carousel-skin.css +142 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/carousel/assets/skins/sam/carousel.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/carousel/carousel-debug.js +4390 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/carousel/carousel-min.js +12 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/carousel/carousel.js +4349 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/charts/assets/charts.swf +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/charts/charts-debug.js +2061 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/charts/charts-min.js +9 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/charts/charts.js +2060 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/assets/colorpicker-core.css +6 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/assets/hue_thumb.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/assets/picker_mask.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/assets/picker_thumb.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/assets/skins/sam/colorpicker-skin.css +105 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/assets/skins/sam/colorpicker.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/assets/skins/sam/hue_bg.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/assets/skins/sam/picker_mask.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/colorpicker-debug.js +1783 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/colorpicker-min.js +9 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/colorpicker/colorpicker.js +1763 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/connection/connection-debug.js +1576 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/connection/connection-min.js +9 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/connection/connection.js +1546 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/connection/connection.swf +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/connection/connection_core-debug.js +980 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/connection/connection_core-min.js +8 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/connection/connection_core.js +957 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/alrt16_1.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/blck16_1.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/close12_1.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/container-core.css +176 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/container.css +324 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/hlp16_1.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/info16_1.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/skins/sam/container-skin.css +242 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/skins/sam/container.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/tip16_1.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/assets/warn16_1.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/container-debug.js +9076 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/container-min.js +19 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/container.js +9052 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/container_core-debug.js +5136 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/container_core-min.js +14 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/container/container_core.js +5126 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/cookie/cookie-debug.js +482 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/cookie/cookie-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/cookie/cookie.js +482 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datasource/datasource-debug.js +3067 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datasource/datasource-min.js +12 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datasource/datasource.js +2996 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datatable/assets/datatable-core.css +93 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datatable/assets/datatable.css +49 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datatable/assets/skins/sam/datatable-skin.css +240 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datatable/assets/skins/sam/datatable.css +8 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datatable/assets/skins/sam/dt-arrow-dn.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datatable/assets/skins/sam/dt-arrow-up.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datatable/datatable-debug.js +17360 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datatable/datatable-min.js +29 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datatable/datatable.js +17122 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datemath/datemath-debug.js +408 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datemath/datemath-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/datemath/datemath.js +408 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/dom/dom-debug.js +1872 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/dom/dom-min.js +9 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/dom/dom.js +1832 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/dragdrop/dragdrop-debug.js +3710 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/dragdrop/dragdrop-min.js +10 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/dragdrop/dragdrop.js +3601 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/editor-core.css +602 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/simpleeditor-core.css +602 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/skins/sam/blankimage.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/skins/sam/editor-knob.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/skins/sam/editor-skin.css +711 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/skins/sam/editor-sprite-active.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/skins/sam/editor-sprite.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/skins/sam/editor.css +10 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/skins/sam/simpleeditor-skin.css +711 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/assets/skins/sam/simpleeditor.css +10 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/editor-debug.js +9557 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/editor-min.js +30 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/editor.js +9447 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/simpleeditor-debug.js +7493 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/simpleeditor-min.js +24 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/editor/simpleeditor.js +7406 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/element-delegate/element-delegate-debug.js +141 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/element-delegate/element-delegate-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/element-delegate/element-delegate.js +138 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/element/element-debug.js +1106 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/element/element-min.js +8 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/element/element.js +1090 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/event-delegate/event-delegate-debug.js +283 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/event-delegate/event-delegate-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/event-delegate/event-delegate.js +281 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/event-mouseenter/event-mouseenter-debug.js +219 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/event-mouseenter/event-mouseenter-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/event-mouseenter/event-mouseenter.js +219 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/event-simulate/event-simulate-debug.js +622 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/event-simulate/event-simulate-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/event-simulate/event-simulate.js +622 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/event/event-debug.js +2524 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/event/event-min.js +11 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/event/event.js +2500 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/fonts/fonts-min.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/fonts/fonts.css +56 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/get/get-debug.js +773 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/get/get-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/get/get.js +755 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/grids/grids-min.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/grids/grids.css +467 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/history/assets/blank.html +1 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/history/history-debug.js +808 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/history/history-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/history/history.js +808 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/imagecropper/assets/imagecropper-core.css +33 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/imagecropper/assets/skins/sam/imagecropper-skin.css +16 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/imagecropper/assets/skins/sam/imagecropper.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/imagecropper/imagecropper-debug.js +907 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/imagecropper/imagecropper-min.js +8 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/imagecropper/imagecropper.js +889 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/imageloader/imageloader-debug.js +487 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/imageloader/imageloader-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/imageloader/imageloader.js +481 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/json/json-debug.js +538 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/json/json-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/json/json.js +538 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/layout/assets/layout-core.css +158 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/layout/assets/skins/sam/layout-skin.css +207 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/layout/assets/skins/sam/layout.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/layout/assets/skins/sam/layout_sprite.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/layout/layout-debug.js +2305 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/layout/layout-min.js +11 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/layout/layout.js +2290 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/logger/assets/logger-core.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/logger/assets/logger.css +57 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/logger/assets/skins/sam/logger-skin.css +55 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/logger/assets/skins/sam/logger.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/logger/logger-debug.js +2104 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/logger/logger-min.js +9 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/logger/logger.js +2104 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menu-core.css +242 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menu.css +503 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menu_down_arrow.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menu_down_arrow_disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menu_up_arrow.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menu_up_arrow_disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menubaritem_submenuindicator.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menubaritem_submenuindicator_disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menubaritem_submenuindicator_selected.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menuitem_checkbox.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menuitem_checkbox_disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menuitem_checkbox_selected.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menuitem_submenuindicator.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menuitem_submenuindicator_disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/menuitem_submenuindicator_selected.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/skins/sam/menu-skin.css +339 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/skins/sam/menu.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/skins/sam/menubaritem_submenuindicator.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/skins/sam/menubaritem_submenuindicator_disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/skins/sam/menuitem_checkbox.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/skins/sam/menuitem_checkbox_disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/skins/sam/menuitem_submenuindicator.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/assets/skins/sam/menuitem_submenuindicator_disabled.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/menu-debug.js +9870 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/menu-min.js +16 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/menu/menu.js +9823 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/paginator/assets/paginator-core.css +6 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/paginator/assets/skins/sam/paginator-skin.css +78 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/paginator/assets/skins/sam/paginator.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/paginator/paginator-debug.js +2393 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/paginator/paginator-min.js +10 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/paginator/paginator.js +2393 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/profiler/profiler-debug.js +557 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/profiler/profiler-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/profiler/profiler.js +557 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/assets/profilerviewer-core.css +6 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/assets/skins/sam/asc.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/assets/skins/sam/desc.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/assets/skins/sam/header_background.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/assets/skins/sam/profilerviewer-skin.css +167 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/assets/skins/sam/profilerviewer.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/assets/skins/sam/wait.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/profilerviewer-debug.js +1229 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/profilerviewer-min.js +9 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/profilerviewer/profilerviewer.js +1192 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/assets/progressbar-core.css +85 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/assets/skins/sam/back-h.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/assets/skins/sam/back-v.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/assets/skins/sam/bar-h.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/assets/skins/sam/bar-v.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/assets/skins/sam/progressbar-skin.css +56 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/assets/skins/sam/progressbar.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/progressbar-debug.js +691 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/progressbar-min.js +8 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/progressbar/progressbar.js +677 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/reset-fonts-grids/reset-fonts-grids.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/reset-fonts/reset-fonts.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/reset/reset-min.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/reset/reset.css +142 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/resize/assets/resize-core.css +173 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/resize/assets/skins/sam/layout_sprite.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/resize/assets/skins/sam/resize-skin.css +142 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/resize/assets/skins/sam/resize.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/resize/resize-debug.js +1749 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/resize/resize-min.js +10 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/resize/resize.js +1689 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/selector/selector-debug.js +651 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/selector/selector-min.js +8 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/selector/selector.js +644 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/bg-fader.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/bg-h.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/bg-v-e.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/bg-v.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/left-thumb.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/right-thumb.png +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/skins/sam/bg-h.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/skins/sam/bg-v.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/skins/sam/slider-skin.css +24 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/skins/sam/slider.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/slider-core.css +17 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/slider-skin.css +20 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/thumb-bar.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/thumb-e.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/thumb-fader.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/thumb-n.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/thumb-s.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/assets/thumb-w.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/slider-debug.js +2114 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/slider-min.js +9 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/slider/slider.js +2068 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/storage/storage-debug.js +1185 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/storage/storage-min.js +8 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/storage/storage.js +1183 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/stylesheet/stylesheet-debug.js +648 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/stylesheet/stylesheet-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/stylesheet/stylesheet.js +645 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/swf/swf-debug.js +269 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/swf/swf-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/swf/swf.js +268 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/swfdetect/swfdetect-debug.js +93 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/swfdetect/swfdetect-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/swfdetect/swfdetect.js +93 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/swfstore/swf.js +238 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/swfstore/swfstore-debug.js +470 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/swfstore/swfstore-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/swfstore/swfstore.js +453 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/swfstore/swfstore.swf +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/tabview/assets/border_tabs.css +54 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/tabview/assets/loading.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/tabview/assets/skin-sam.css +77 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/tabview/assets/skins/sam/tabview-skin.css +186 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/tabview/assets/skins/sam/tabview.css +8 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/tabview/assets/tabview-core.css +133 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/tabview/assets/tabview.css +77 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/tabview/tabview-debug.js +995 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/tabview/tabview-min.js +8 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/tabview/tabview.js +987 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/skins/sam/check0.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/skins/sam/check1.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/skins/sam/check2.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/skins/sam/loading.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/skins/sam/treeview-loading.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/skins/sam/treeview-skin.css +249 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/skins/sam/treeview-sprite.gif +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/skins/sam/treeview.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/treeview/assets/treeview-core.css +6 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/treeview/treeview-debug.js +4058 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/treeview/treeview-min.js +12 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/treeview/treeview.js +3989 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/uploader/assets/uploader.swf +0 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/uploader/uploader-debug.js +1072 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/uploader/uploader-min.js +15 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/uploader/uploader.js +1069 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/utilities/utilities.js +39 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yahoo-dom-event/yahoo-dom-event.js +14 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yahoo/yahoo-debug.js +1075 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yahoo/yahoo-min.js +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yahoo/yahoo.js +1075 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuiloader-dom-event/yuiloader-dom-event.js +17 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuiloader/yuiloader-debug.js +3879 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuiloader/yuiloader-min.js +10 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuiloader/yuiloader.js +3879 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/assets/skins/sam/yuitest-skin.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/assets/skins/sam/yuitest.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/assets/testlogger.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/assets/yuitest-core.css +7 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/yuitest-debug.js +2741 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/yuitest-min.js +10 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/yuitest.js +2741 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/yuitest_core-debug.js +1976 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/yuitest_core-min.js +9 -0
- data/vendor/assets/javascripts/yui-2.8.1/build/yuitest/yuitest_core.js +1976 -0
- metadata +470 -0
@@ -0,0 +1,283 @@
|
|
1
|
+
/*
|
2
|
+
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
|
3
|
+
Code licensed under the BSD License:
|
4
|
+
http://developer.yahoo.com/yui/license.html
|
5
|
+
version: 2.8.1
|
6
|
+
*/
|
7
|
+
/**
|
8
|
+
* Augments the Event Utility with a <code>delegate</code> method that
|
9
|
+
* facilitates easy creation of delegated event listeners. (Note: Using CSS
|
10
|
+
* selectors as the filtering criteria for delegated event listeners requires
|
11
|
+
* inclusion of the Selector Utility.)
|
12
|
+
*
|
13
|
+
* @module event-delegate
|
14
|
+
* @title Event Utility Event Delegation Module
|
15
|
+
* @namespace YAHOO.util
|
16
|
+
* @requires event
|
17
|
+
*/
|
18
|
+
|
19
|
+
(function () {
|
20
|
+
|
21
|
+
var Event = YAHOO.util.Event,
|
22
|
+
Lang = YAHOO.lang,
|
23
|
+
delegates = [],
|
24
|
+
|
25
|
+
|
26
|
+
getMatch = function(el, selector, container) {
|
27
|
+
|
28
|
+
var returnVal;
|
29
|
+
|
30
|
+
if (!el || el === container) {
|
31
|
+
returnVal = false;
|
32
|
+
}
|
33
|
+
else {
|
34
|
+
returnVal = YAHOO.util.Selector.test(el, selector) ? el: getMatch(el.parentNode, selector, container);
|
35
|
+
}
|
36
|
+
|
37
|
+
return returnVal;
|
38
|
+
|
39
|
+
};
|
40
|
+
|
41
|
+
|
42
|
+
Lang.augmentObject(Event, {
|
43
|
+
|
44
|
+
/**
|
45
|
+
* Creates a delegate function used to call event listeners specified
|
46
|
+
* via the <code>YAHOO.util.Event.delegate</code> method.
|
47
|
+
*
|
48
|
+
* @method _createDelegate
|
49
|
+
*
|
50
|
+
* @param {Function} fn The method (event listener) to call.
|
51
|
+
* @param {Function|string} filter Function or CSS selector used to
|
52
|
+
* determine for what element(s) the event listener should be called.
|
53
|
+
* @param {Object} obj An arbitrary object that will be
|
54
|
+
* passed as a parameter to the listener.
|
55
|
+
* @param {Boolean|object} overrideContext If true, the value of the
|
56
|
+
* obj parameter becomes the execution context
|
57
|
+
* of the listener. If an object, this object
|
58
|
+
* becomes the execution context.
|
59
|
+
* @return {Function} Function that will call the event listener
|
60
|
+
* specified by the <code>YAHOO.util.Event.delegate</code> method.
|
61
|
+
* @private
|
62
|
+
* @for Event
|
63
|
+
* @static
|
64
|
+
*/
|
65
|
+
_createDelegate: function (fn, filter, obj, overrideContext) {
|
66
|
+
|
67
|
+
return function (event) {
|
68
|
+
|
69
|
+
var container = this,
|
70
|
+
target = Event.getTarget(event),
|
71
|
+
selector = filter,
|
72
|
+
|
73
|
+
// The user might have specified the document object
|
74
|
+
// as the delegation container, in which case it is not
|
75
|
+
// nessary to scope the provided CSS selector(s) to the
|
76
|
+
// delegation container
|
77
|
+
bDocument = (container.nodeType === 9),
|
78
|
+
|
79
|
+
matchedEl,
|
80
|
+
context,
|
81
|
+
sID,
|
82
|
+
sIDSelector;
|
83
|
+
|
84
|
+
|
85
|
+
if (Lang.isFunction(filter)) {
|
86
|
+
matchedEl = filter(target);
|
87
|
+
}
|
88
|
+
else if (Lang.isString(filter)) {
|
89
|
+
|
90
|
+
if (!bDocument) {
|
91
|
+
|
92
|
+
sID = container.id;
|
93
|
+
|
94
|
+
if (!sID) {
|
95
|
+
sID = Event.generateId(container);
|
96
|
+
}
|
97
|
+
|
98
|
+
// Scope all selectors to the container
|
99
|
+
sIDSelector = ("#" + sID + " ");
|
100
|
+
selector = (sIDSelector + filter).replace(/,/gi, ("," + sIDSelector));
|
101
|
+
|
102
|
+
}
|
103
|
+
|
104
|
+
|
105
|
+
if (YAHOO.util.Selector.test(target, selector)) {
|
106
|
+
matchedEl = target;
|
107
|
+
}
|
108
|
+
else if (YAHOO.util.Selector.test(target, ((selector.replace(/,/gi, " *,")) + " *"))) {
|
109
|
+
|
110
|
+
// The target is a descendant of an element matching
|
111
|
+
// the selector, so crawl up to find the ancestor that
|
112
|
+
// matches the selector
|
113
|
+
|
114
|
+
matchedEl = getMatch(target, selector, container);
|
115
|
+
|
116
|
+
}
|
117
|
+
|
118
|
+
}
|
119
|
+
|
120
|
+
|
121
|
+
if (matchedEl) {
|
122
|
+
|
123
|
+
// The default context for delegated listeners is the
|
124
|
+
// element that matched the filter.
|
125
|
+
|
126
|
+
context = matchedEl;
|
127
|
+
|
128
|
+
if (overrideContext) {
|
129
|
+
if (overrideContext === true) {
|
130
|
+
context = obj;
|
131
|
+
} else {
|
132
|
+
context = overrideContext;
|
133
|
+
}
|
134
|
+
}
|
135
|
+
|
136
|
+
// Call the listener passing in the container and the
|
137
|
+
// element that matched the filter in case the user
|
138
|
+
// needs those.
|
139
|
+
|
140
|
+
return fn.call(context, event, matchedEl, container, obj);
|
141
|
+
|
142
|
+
}
|
143
|
+
|
144
|
+
};
|
145
|
+
|
146
|
+
},
|
147
|
+
|
148
|
+
|
149
|
+
/**
|
150
|
+
* Appends a delegated event listener. Delegated event listeners
|
151
|
+
* receive three arguments by default: the DOM event, the element
|
152
|
+
* specified by the filtering function or CSS selector, and the
|
153
|
+
* container element (the element to which the event listener is
|
154
|
+
* bound). (Note: Using the delegate method requires the event-delegate
|
155
|
+
* module. Using CSS selectors as the filtering criteria for delegated
|
156
|
+
* event listeners requires inclusion of the Selector Utility.)
|
157
|
+
*
|
158
|
+
* @method delegate
|
159
|
+
*
|
160
|
+
* @param {String|HTMLElement|Array|NodeList} container An id, an element
|
161
|
+
* reference, or a collection of ids and/or elements to assign the
|
162
|
+
* listener to.
|
163
|
+
* @param {String} type The type of event listener to append
|
164
|
+
* @param {Function} fn The method the event invokes
|
165
|
+
* @param {Function|string} filter Function or CSS selector used to
|
166
|
+
* determine for what element(s) the event listener should be called.
|
167
|
+
* When a function is specified, the function should return an
|
168
|
+
* HTML element. Using a CSS Selector requires the inclusion of the
|
169
|
+
* CSS Selector Utility.
|
170
|
+
* @param {Object} obj An arbitrary object that will be
|
171
|
+
* passed as a parameter to the listener
|
172
|
+
* @param {Boolean|object} overrideContext If true, the value of the obj parameter becomes
|
173
|
+
* the execution context of the listener. If an
|
174
|
+
* object, this object becomes the execution
|
175
|
+
* context.
|
176
|
+
* @return {Boolean} Returns true if the action was successful or defered,
|
177
|
+
* false if one or more of the elements
|
178
|
+
* could not have the listener attached,
|
179
|
+
* or if the operation throws an exception.
|
180
|
+
* @static
|
181
|
+
* @for Event
|
182
|
+
*/
|
183
|
+
delegate: function (container, type, fn, filter, obj, overrideContext) {
|
184
|
+
|
185
|
+
var sType = type,
|
186
|
+
fnMouseDelegate,
|
187
|
+
fnDelegate;
|
188
|
+
|
189
|
+
|
190
|
+
if (Lang.isString(filter) && !YAHOO.util.Selector) {
|
191
|
+
YAHOO.log("Using a CSS selector to define the filtering criteria for a delegated listener requires the Selector Utility.", "error", "Event");
|
192
|
+
return false;
|
193
|
+
}
|
194
|
+
|
195
|
+
|
196
|
+
if (type == "mouseenter" || type == "mouseleave") {
|
197
|
+
|
198
|
+
if (!Event._createMouseDelegate) {
|
199
|
+
YAHOO.log("Delegating a " + type + " event requires the event-mouseenter module.", "error", "Event");
|
200
|
+
return false;
|
201
|
+
}
|
202
|
+
|
203
|
+
// Look up the real event--either mouseover or mouseout
|
204
|
+
sType = Event._getType(type);
|
205
|
+
|
206
|
+
fnMouseDelegate = Event._createMouseDelegate(fn, obj, overrideContext);
|
207
|
+
|
208
|
+
fnDelegate = Event._createDelegate(function (event, matchedEl, container) {
|
209
|
+
|
210
|
+
return fnMouseDelegate.call(matchedEl, event, container);
|
211
|
+
|
212
|
+
}, filter, obj, overrideContext);
|
213
|
+
|
214
|
+
}
|
215
|
+
else {
|
216
|
+
|
217
|
+
fnDelegate = Event._createDelegate(fn, filter, obj, overrideContext);
|
218
|
+
|
219
|
+
}
|
220
|
+
|
221
|
+
delegates.push([container, sType, fn, fnDelegate]);
|
222
|
+
|
223
|
+
return Event.on(container, sType, fnDelegate);
|
224
|
+
|
225
|
+
},
|
226
|
+
|
227
|
+
|
228
|
+
/**
|
229
|
+
* Removes a delegated event listener.
|
230
|
+
*
|
231
|
+
* @method removeDelegate
|
232
|
+
*
|
233
|
+
* @param {String|HTMLElement|Array|NodeList} container An id, an element
|
234
|
+
* reference, or a collection of ids and/or elements to remove
|
235
|
+
* the listener from.
|
236
|
+
* @param {String} type The type of event to remove.
|
237
|
+
* @param {Function} fn The method the event invokes. If fn is
|
238
|
+
* undefined, then all event listeners for the type of event are
|
239
|
+
* removed.
|
240
|
+
* @return {boolean} Returns true if the unbind was successful, false
|
241
|
+
* otherwise.
|
242
|
+
* @static
|
243
|
+
* @for Event
|
244
|
+
*/
|
245
|
+
removeDelegate: function (container, type, fn) {
|
246
|
+
|
247
|
+
var sType = type,
|
248
|
+
returnVal = false,
|
249
|
+
index,
|
250
|
+
cacheItem;
|
251
|
+
|
252
|
+
// Look up the real event--either mouseover or mouseout
|
253
|
+
if (type == "mouseenter" || type == "mouseleave") {
|
254
|
+
sType = Event._getType(type);
|
255
|
+
}
|
256
|
+
|
257
|
+
index = Event._getCacheIndex(delegates, container, sType, fn);
|
258
|
+
|
259
|
+
if (index >= 0) {
|
260
|
+
cacheItem = delegates[index];
|
261
|
+
}
|
262
|
+
|
263
|
+
|
264
|
+
if (container && cacheItem) {
|
265
|
+
|
266
|
+
returnVal = Event.removeListener(cacheItem[0], cacheItem[1], cacheItem[3]);
|
267
|
+
|
268
|
+
if (returnVal) {
|
269
|
+
delete delegates[index][2];
|
270
|
+
delete delegates[index][3];
|
271
|
+
delegates.splice(index, 1);
|
272
|
+
}
|
273
|
+
|
274
|
+
}
|
275
|
+
|
276
|
+
return returnVal;
|
277
|
+
|
278
|
+
}
|
279
|
+
|
280
|
+
});
|
281
|
+
|
282
|
+
}());
|
283
|
+
YAHOO.register("event-delegate", YAHOO.util.Event, {version: "2.8.1", build: "19"});
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/*
|
2
|
+
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
|
3
|
+
Code licensed under the BSD License:
|
4
|
+
http://developer.yahoo.com/yui/license.html
|
5
|
+
version: 2.8.1
|
6
|
+
*/
|
7
|
+
(function(){var A=YAHOO.util.Event,C=YAHOO.lang,B=[],D=function(H,E,F){var G;if(!H||H===F){G=false;}else{G=YAHOO.util.Selector.test(H,E)?H:D(H.parentNode,E,F);}return G;};C.augmentObject(A,{_createDelegate:function(F,E,G,H){return function(I){var J=this,N=A.getTarget(I),L=E,P=(J.nodeType===9),Q,K,O,M;if(C.isFunction(E)){Q=E(N);}else{if(C.isString(E)){if(!P){O=J.id;if(!O){O=A.generateId(J);}M=("#"+O+" ");L=(M+E).replace(/,/gi,(","+M));}if(YAHOO.util.Selector.test(N,L)){Q=N;}else{if(YAHOO.util.Selector.test(N,((L.replace(/,/gi," *,"))+" *"))){Q=D(N,L,J);}}}}if(Q){K=Q;if(H){if(H===true){K=G;}else{K=H;}}return F.call(K,I,Q,J,G);}};},delegate:function(F,J,L,G,H,I){var E=J,K,M;if(C.isString(G)&&!YAHOO.util.Selector){return false;}if(J=="mouseenter"||J=="mouseleave"){if(!A._createMouseDelegate){return false;}E=A._getType(J);K=A._createMouseDelegate(L,H,I);M=A._createDelegate(function(P,O,N){return K.call(O,P,N);},G,H,I);}else{M=A._createDelegate(L,G,H,I);}B.push([F,E,L,M]);return A.on(F,E,M);},removeDelegate:function(F,J,I){var K=J,H=false,G,E;if(J=="mouseenter"||J=="mouseleave"){K=A._getType(J);}G=A._getCacheIndex(B,F,K,I);if(G>=0){E=B[G];}if(F&&E){H=A.removeListener(E[0],E[1],E[3]);if(H){delete B[G][2];delete B[G][3];B.splice(G,1);}}return H;}});}());YAHOO.register("event-delegate",YAHOO.util.Event,{version:"2.8.1",build:"19"});
|
@@ -0,0 +1,281 @@
|
|
1
|
+
/*
|
2
|
+
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
|
3
|
+
Code licensed under the BSD License:
|
4
|
+
http://developer.yahoo.com/yui/license.html
|
5
|
+
version: 2.8.1
|
6
|
+
*/
|
7
|
+
/**
|
8
|
+
* Augments the Event Utility with a <code>delegate</code> method that
|
9
|
+
* facilitates easy creation of delegated event listeners. (Note: Using CSS
|
10
|
+
* selectors as the filtering criteria for delegated event listeners requires
|
11
|
+
* inclusion of the Selector Utility.)
|
12
|
+
*
|
13
|
+
* @module event-delegate
|
14
|
+
* @title Event Utility Event Delegation Module
|
15
|
+
* @namespace YAHOO.util
|
16
|
+
* @requires event
|
17
|
+
*/
|
18
|
+
|
19
|
+
(function () {
|
20
|
+
|
21
|
+
var Event = YAHOO.util.Event,
|
22
|
+
Lang = YAHOO.lang,
|
23
|
+
delegates = [],
|
24
|
+
|
25
|
+
|
26
|
+
getMatch = function(el, selector, container) {
|
27
|
+
|
28
|
+
var returnVal;
|
29
|
+
|
30
|
+
if (!el || el === container) {
|
31
|
+
returnVal = false;
|
32
|
+
}
|
33
|
+
else {
|
34
|
+
returnVal = YAHOO.util.Selector.test(el, selector) ? el: getMatch(el.parentNode, selector, container);
|
35
|
+
}
|
36
|
+
|
37
|
+
return returnVal;
|
38
|
+
|
39
|
+
};
|
40
|
+
|
41
|
+
|
42
|
+
Lang.augmentObject(Event, {
|
43
|
+
|
44
|
+
/**
|
45
|
+
* Creates a delegate function used to call event listeners specified
|
46
|
+
* via the <code>YAHOO.util.Event.delegate</code> method.
|
47
|
+
*
|
48
|
+
* @method _createDelegate
|
49
|
+
*
|
50
|
+
* @param {Function} fn The method (event listener) to call.
|
51
|
+
* @param {Function|string} filter Function or CSS selector used to
|
52
|
+
* determine for what element(s) the event listener should be called.
|
53
|
+
* @param {Object} obj An arbitrary object that will be
|
54
|
+
* passed as a parameter to the listener.
|
55
|
+
* @param {Boolean|object} overrideContext If true, the value of the
|
56
|
+
* obj parameter becomes the execution context
|
57
|
+
* of the listener. If an object, this object
|
58
|
+
* becomes the execution context.
|
59
|
+
* @return {Function} Function that will call the event listener
|
60
|
+
* specified by the <code>YAHOO.util.Event.delegate</code> method.
|
61
|
+
* @private
|
62
|
+
* @for Event
|
63
|
+
* @static
|
64
|
+
*/
|
65
|
+
_createDelegate: function (fn, filter, obj, overrideContext) {
|
66
|
+
|
67
|
+
return function (event) {
|
68
|
+
|
69
|
+
var container = this,
|
70
|
+
target = Event.getTarget(event),
|
71
|
+
selector = filter,
|
72
|
+
|
73
|
+
// The user might have specified the document object
|
74
|
+
// as the delegation container, in which case it is not
|
75
|
+
// nessary to scope the provided CSS selector(s) to the
|
76
|
+
// delegation container
|
77
|
+
bDocument = (container.nodeType === 9),
|
78
|
+
|
79
|
+
matchedEl,
|
80
|
+
context,
|
81
|
+
sID,
|
82
|
+
sIDSelector;
|
83
|
+
|
84
|
+
|
85
|
+
if (Lang.isFunction(filter)) {
|
86
|
+
matchedEl = filter(target);
|
87
|
+
}
|
88
|
+
else if (Lang.isString(filter)) {
|
89
|
+
|
90
|
+
if (!bDocument) {
|
91
|
+
|
92
|
+
sID = container.id;
|
93
|
+
|
94
|
+
if (!sID) {
|
95
|
+
sID = Event.generateId(container);
|
96
|
+
}
|
97
|
+
|
98
|
+
// Scope all selectors to the container
|
99
|
+
sIDSelector = ("#" + sID + " ");
|
100
|
+
selector = (sIDSelector + filter).replace(/,/gi, ("," + sIDSelector));
|
101
|
+
|
102
|
+
}
|
103
|
+
|
104
|
+
|
105
|
+
if (YAHOO.util.Selector.test(target, selector)) {
|
106
|
+
matchedEl = target;
|
107
|
+
}
|
108
|
+
else if (YAHOO.util.Selector.test(target, ((selector.replace(/,/gi, " *,")) + " *"))) {
|
109
|
+
|
110
|
+
// The target is a descendant of an element matching
|
111
|
+
// the selector, so crawl up to find the ancestor that
|
112
|
+
// matches the selector
|
113
|
+
|
114
|
+
matchedEl = getMatch(target, selector, container);
|
115
|
+
|
116
|
+
}
|
117
|
+
|
118
|
+
}
|
119
|
+
|
120
|
+
|
121
|
+
if (matchedEl) {
|
122
|
+
|
123
|
+
// The default context for delegated listeners is the
|
124
|
+
// element that matched the filter.
|
125
|
+
|
126
|
+
context = matchedEl;
|
127
|
+
|
128
|
+
if (overrideContext) {
|
129
|
+
if (overrideContext === true) {
|
130
|
+
context = obj;
|
131
|
+
} else {
|
132
|
+
context = overrideContext;
|
133
|
+
}
|
134
|
+
}
|
135
|
+
|
136
|
+
// Call the listener passing in the container and the
|
137
|
+
// element that matched the filter in case the user
|
138
|
+
// needs those.
|
139
|
+
|
140
|
+
return fn.call(context, event, matchedEl, container, obj);
|
141
|
+
|
142
|
+
}
|
143
|
+
|
144
|
+
};
|
145
|
+
|
146
|
+
},
|
147
|
+
|
148
|
+
|
149
|
+
/**
|
150
|
+
* Appends a delegated event listener. Delegated event listeners
|
151
|
+
* receive three arguments by default: the DOM event, the element
|
152
|
+
* specified by the filtering function or CSS selector, and the
|
153
|
+
* container element (the element to which the event listener is
|
154
|
+
* bound). (Note: Using the delegate method requires the event-delegate
|
155
|
+
* module. Using CSS selectors as the filtering criteria for delegated
|
156
|
+
* event listeners requires inclusion of the Selector Utility.)
|
157
|
+
*
|
158
|
+
* @method delegate
|
159
|
+
*
|
160
|
+
* @param {String|HTMLElement|Array|NodeList} container An id, an element
|
161
|
+
* reference, or a collection of ids and/or elements to assign the
|
162
|
+
* listener to.
|
163
|
+
* @param {String} type The type of event listener to append
|
164
|
+
* @param {Function} fn The method the event invokes
|
165
|
+
* @param {Function|string} filter Function or CSS selector used to
|
166
|
+
* determine for what element(s) the event listener should be called.
|
167
|
+
* When a function is specified, the function should return an
|
168
|
+
* HTML element. Using a CSS Selector requires the inclusion of the
|
169
|
+
* CSS Selector Utility.
|
170
|
+
* @param {Object} obj An arbitrary object that will be
|
171
|
+
* passed as a parameter to the listener
|
172
|
+
* @param {Boolean|object} overrideContext If true, the value of the obj parameter becomes
|
173
|
+
* the execution context of the listener. If an
|
174
|
+
* object, this object becomes the execution
|
175
|
+
* context.
|
176
|
+
* @return {Boolean} Returns true if the action was successful or defered,
|
177
|
+
* false if one or more of the elements
|
178
|
+
* could not have the listener attached,
|
179
|
+
* or if the operation throws an exception.
|
180
|
+
* @static
|
181
|
+
* @for Event
|
182
|
+
*/
|
183
|
+
delegate: function (container, type, fn, filter, obj, overrideContext) {
|
184
|
+
|
185
|
+
var sType = type,
|
186
|
+
fnMouseDelegate,
|
187
|
+
fnDelegate;
|
188
|
+
|
189
|
+
|
190
|
+
if (Lang.isString(filter) && !YAHOO.util.Selector) {
|
191
|
+
return false;
|
192
|
+
}
|
193
|
+
|
194
|
+
|
195
|
+
if (type == "mouseenter" || type == "mouseleave") {
|
196
|
+
|
197
|
+
if (!Event._createMouseDelegate) {
|
198
|
+
return false;
|
199
|
+
}
|
200
|
+
|
201
|
+
// Look up the real event--either mouseover or mouseout
|
202
|
+
sType = Event._getType(type);
|
203
|
+
|
204
|
+
fnMouseDelegate = Event._createMouseDelegate(fn, obj, overrideContext);
|
205
|
+
|
206
|
+
fnDelegate = Event._createDelegate(function (event, matchedEl, container) {
|
207
|
+
|
208
|
+
return fnMouseDelegate.call(matchedEl, event, container);
|
209
|
+
|
210
|
+
}, filter, obj, overrideContext);
|
211
|
+
|
212
|
+
}
|
213
|
+
else {
|
214
|
+
|
215
|
+
fnDelegate = Event._createDelegate(fn, filter, obj, overrideContext);
|
216
|
+
|
217
|
+
}
|
218
|
+
|
219
|
+
delegates.push([container, sType, fn, fnDelegate]);
|
220
|
+
|
221
|
+
return Event.on(container, sType, fnDelegate);
|
222
|
+
|
223
|
+
},
|
224
|
+
|
225
|
+
|
226
|
+
/**
|
227
|
+
* Removes a delegated event listener.
|
228
|
+
*
|
229
|
+
* @method removeDelegate
|
230
|
+
*
|
231
|
+
* @param {String|HTMLElement|Array|NodeList} container An id, an element
|
232
|
+
* reference, or a collection of ids and/or elements to remove
|
233
|
+
* the listener from.
|
234
|
+
* @param {String} type The type of event to remove.
|
235
|
+
* @param {Function} fn The method the event invokes. If fn is
|
236
|
+
* undefined, then all event listeners for the type of event are
|
237
|
+
* removed.
|
238
|
+
* @return {boolean} Returns true if the unbind was successful, false
|
239
|
+
* otherwise.
|
240
|
+
* @static
|
241
|
+
* @for Event
|
242
|
+
*/
|
243
|
+
removeDelegate: function (container, type, fn) {
|
244
|
+
|
245
|
+
var sType = type,
|
246
|
+
returnVal = false,
|
247
|
+
index,
|
248
|
+
cacheItem;
|
249
|
+
|
250
|
+
// Look up the real event--either mouseover or mouseout
|
251
|
+
if (type == "mouseenter" || type == "mouseleave") {
|
252
|
+
sType = Event._getType(type);
|
253
|
+
}
|
254
|
+
|
255
|
+
index = Event._getCacheIndex(delegates, container, sType, fn);
|
256
|
+
|
257
|
+
if (index >= 0) {
|
258
|
+
cacheItem = delegates[index];
|
259
|
+
}
|
260
|
+
|
261
|
+
|
262
|
+
if (container && cacheItem) {
|
263
|
+
|
264
|
+
returnVal = Event.removeListener(cacheItem[0], cacheItem[1], cacheItem[3]);
|
265
|
+
|
266
|
+
if (returnVal) {
|
267
|
+
delete delegates[index][2];
|
268
|
+
delete delegates[index][3];
|
269
|
+
delegates.splice(index, 1);
|
270
|
+
}
|
271
|
+
|
272
|
+
}
|
273
|
+
|
274
|
+
return returnVal;
|
275
|
+
|
276
|
+
}
|
277
|
+
|
278
|
+
});
|
279
|
+
|
280
|
+
}());
|
281
|
+
YAHOO.register("event-delegate", YAHOO.util.Event, {version: "2.8.1", build: "19"});
|