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,557 @@
|
|
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
|
+
YAHOO.namespace("tool");
|
8
|
+
|
9
|
+
/**
|
10
|
+
* The YUI JavaScript profiler.
|
11
|
+
* @module profiler
|
12
|
+
* @namespace YAHOO.tool
|
13
|
+
* @requires yahoo
|
14
|
+
*/
|
15
|
+
|
16
|
+
/**
|
17
|
+
* Profiles functions in JavaScript.
|
18
|
+
* @namespace YAHOO.tool
|
19
|
+
* @class Profiler
|
20
|
+
* @static
|
21
|
+
*/
|
22
|
+
YAHOO.tool.Profiler = function(){
|
23
|
+
|
24
|
+
|
25
|
+
//-------------------------------------------------------------------------
|
26
|
+
// Private Variables and Functions
|
27
|
+
//-------------------------------------------------------------------------
|
28
|
+
|
29
|
+
var container = {}, //Container object on which to put the original unprofiled methods.
|
30
|
+
report = {}, //Profiling information for functions
|
31
|
+
stopwatches = {}, //Additional stopwatch information
|
32
|
+
|
33
|
+
WATCH_STARTED = 0,
|
34
|
+
WATCH_STOPPED = 1,
|
35
|
+
WATCH_PAUSED = 2,
|
36
|
+
|
37
|
+
lang = YAHOO.lang;
|
38
|
+
|
39
|
+
/**
|
40
|
+
* Creates a report object with the given name.
|
41
|
+
* @param {String} name The name to store for the report object.
|
42
|
+
* @return {Void}
|
43
|
+
* @method createReport
|
44
|
+
* @private
|
45
|
+
*/
|
46
|
+
function createReport(name){
|
47
|
+
report[name] = {
|
48
|
+
calls: 0,
|
49
|
+
max: 0,
|
50
|
+
min: 0,
|
51
|
+
avg: 0,
|
52
|
+
points: []
|
53
|
+
};
|
54
|
+
}
|
55
|
+
|
56
|
+
/**
|
57
|
+
* Called when a method ends execution. Marks the start and end time of the
|
58
|
+
* method so it can calculate how long the function took to execute. Also
|
59
|
+
* updates min/max/avg calculations for the function.
|
60
|
+
* @param {String} name The name of the function to mark as stopped.
|
61
|
+
* @param {int} duration The number of milliseconds it took the function to
|
62
|
+
* execute.
|
63
|
+
* @return {Void}
|
64
|
+
* @method saveDataPoint
|
65
|
+
* @private
|
66
|
+
* @static
|
67
|
+
*/
|
68
|
+
function saveDataPoint(name, duration){
|
69
|
+
|
70
|
+
//get the function data
|
71
|
+
var functionData /*:Object*/ = report[name];
|
72
|
+
|
73
|
+
//just in case clear() was called
|
74
|
+
if (!functionData){
|
75
|
+
functionData = createReport(name);
|
76
|
+
}
|
77
|
+
|
78
|
+
//increment the calls
|
79
|
+
functionData.calls++;
|
80
|
+
functionData.points.push(duration);
|
81
|
+
|
82
|
+
//if it's already been called at least once, do more complex calculations
|
83
|
+
if (functionData.calls > 1) {
|
84
|
+
functionData.avg = ((functionData.avg*(functionData.calls-1))+duration)/functionData.calls;
|
85
|
+
functionData.min = Math.min(functionData.min, duration);
|
86
|
+
functionData.max = Math.max(functionData.max, duration);
|
87
|
+
} else {
|
88
|
+
functionData.avg = duration;
|
89
|
+
functionData.min = duration;
|
90
|
+
functionData.max = duration;
|
91
|
+
}
|
92
|
+
|
93
|
+
}
|
94
|
+
|
95
|
+
//-------------------------------------------------------------------------
|
96
|
+
// Singleton Object
|
97
|
+
//-------------------------------------------------------------------------
|
98
|
+
|
99
|
+
return {
|
100
|
+
|
101
|
+
//-------------------------------------------------------------------------
|
102
|
+
// Utility Methods
|
103
|
+
//-------------------------------------------------------------------------
|
104
|
+
|
105
|
+
/**
|
106
|
+
* Removes all report data from the profiler.
|
107
|
+
* @param {String} name (Optional) The name of the report to clear. If
|
108
|
+
* omitted, then all report data is cleared.
|
109
|
+
* @return {Void}
|
110
|
+
* @method clear
|
111
|
+
* @static
|
112
|
+
*/
|
113
|
+
clear: function(name){
|
114
|
+
if (lang.isString(name)){
|
115
|
+
delete report[name];
|
116
|
+
delete stopwatches[name];
|
117
|
+
} else {
|
118
|
+
report = {};
|
119
|
+
stopwatches = {};
|
120
|
+
}
|
121
|
+
},
|
122
|
+
|
123
|
+
/**
|
124
|
+
* Returns the uninstrumented version of a function/object.
|
125
|
+
* @param {String} name The name of the function/object to retrieve.
|
126
|
+
* @return {Function|Object} The uninstrumented version of a function/object.
|
127
|
+
* @method getOriginal
|
128
|
+
* @static
|
129
|
+
*/
|
130
|
+
getOriginal: function(name){
|
131
|
+
return container[name];
|
132
|
+
},
|
133
|
+
|
134
|
+
/**
|
135
|
+
* Instruments a method to have profiling calls.
|
136
|
+
* @param {String} name The name of the report for the function.
|
137
|
+
* @param {Function} method The function to instrument.
|
138
|
+
* @return {Function} An instrumented version of the function.
|
139
|
+
* @method instrument
|
140
|
+
* @static
|
141
|
+
*/
|
142
|
+
instrument: function(name, method){
|
143
|
+
|
144
|
+
//create instrumented version of function
|
145
|
+
var newMethod = function () {
|
146
|
+
|
147
|
+
var start = new Date(),
|
148
|
+
retval = method.apply(this, arguments),
|
149
|
+
stop = new Date();
|
150
|
+
|
151
|
+
saveDataPoint(name, stop-start);
|
152
|
+
|
153
|
+
return retval;
|
154
|
+
|
155
|
+
};
|
156
|
+
|
157
|
+
//copy the function properties over
|
158
|
+
lang.augmentObject(newMethod, method);
|
159
|
+
|
160
|
+
//assign prototype and flag as being profiled
|
161
|
+
newMethod.__yuiProfiled = true;
|
162
|
+
newMethod.prototype = method.prototype;
|
163
|
+
|
164
|
+
//store original method
|
165
|
+
container[name] = method;
|
166
|
+
container[name].__yuiFuncName = name;
|
167
|
+
|
168
|
+
//create the report
|
169
|
+
createReport(name);
|
170
|
+
|
171
|
+
//return the new method
|
172
|
+
return newMethod;
|
173
|
+
},
|
174
|
+
|
175
|
+
//-------------------------------------------------------------------------
|
176
|
+
// Stopwatch Methods
|
177
|
+
//-------------------------------------------------------------------------
|
178
|
+
|
179
|
+
/**
|
180
|
+
* Pauses profiling information for a given name.
|
181
|
+
* @param {String} name The name of the data point.
|
182
|
+
* @return {Void}
|
183
|
+
* @method pause
|
184
|
+
* @static
|
185
|
+
*/
|
186
|
+
pause: function(name){
|
187
|
+
var now = new Date(),
|
188
|
+
stopwatch = stopwatches[name];
|
189
|
+
|
190
|
+
if (stopwatch && stopwatch.state == WATCH_STARTED){
|
191
|
+
stopwatch.total += (now - stopwatch.start);
|
192
|
+
stopwatch.start = 0;
|
193
|
+
stopwatch.state = WATCH_PAUSED;
|
194
|
+
}
|
195
|
+
|
196
|
+
},
|
197
|
+
|
198
|
+
/**
|
199
|
+
* Start profiling information for a given name. The name cannot be the name
|
200
|
+
* of a registered function or object. This is used to start timing for a
|
201
|
+
* particular block of code rather than instrumenting the entire function.
|
202
|
+
* @param {String} name The name of the data point.
|
203
|
+
* @return {Void}
|
204
|
+
* @method start
|
205
|
+
* @static
|
206
|
+
*/
|
207
|
+
start: function(name){
|
208
|
+
if(container[name]){
|
209
|
+
throw new Error("Cannot use '" + name + "' for profiling through start(), name is already in use.");
|
210
|
+
} else {
|
211
|
+
|
212
|
+
//create report if necessary
|
213
|
+
if (!report[name]){
|
214
|
+
createReport(name);
|
215
|
+
}
|
216
|
+
|
217
|
+
//create stopwatch object if necessary
|
218
|
+
if (!stopwatches[name]){
|
219
|
+
stopwatches[name] = {
|
220
|
+
state: WATCH_STOPPED,
|
221
|
+
start: 0,
|
222
|
+
total: 0
|
223
|
+
};
|
224
|
+
}
|
225
|
+
|
226
|
+
if (stopwatches[name].state == WATCH_STOPPED){
|
227
|
+
stopwatches[name].state = WATCH_STARTED;
|
228
|
+
stopwatches[name].start = new Date();
|
229
|
+
}
|
230
|
+
|
231
|
+
}
|
232
|
+
},
|
233
|
+
|
234
|
+
/**
|
235
|
+
* Stops profiling information for a given name.
|
236
|
+
* @param {String} name The name of the data point.
|
237
|
+
* @return {Void}
|
238
|
+
* @method stop
|
239
|
+
* @static
|
240
|
+
*/
|
241
|
+
stop: function(name){
|
242
|
+
var now = new Date(),
|
243
|
+
stopwatch = stopwatches[name];
|
244
|
+
|
245
|
+
if (stopwatch){
|
246
|
+
if (stopwatch.state == WATCH_STARTED){
|
247
|
+
saveDataPoint(name, stopwatch.total + (now - stopwatch.start));
|
248
|
+
} else if (stopwatch.state == WATCH_PAUSED){
|
249
|
+
saveDataPoint(name, stopwatch.total);
|
250
|
+
}
|
251
|
+
|
252
|
+
//reset stopwatch information
|
253
|
+
stopwatch.start = 0;
|
254
|
+
stopwatch.total = 0;
|
255
|
+
stopwatch.state = WATCH_STOPPED;
|
256
|
+
}
|
257
|
+
},
|
258
|
+
|
259
|
+
//-------------------------------------------------------------------------
|
260
|
+
// Reporting Methods
|
261
|
+
//-------------------------------------------------------------------------
|
262
|
+
|
263
|
+
/**
|
264
|
+
* Returns the average amount of time (in milliseconds) that the function
|
265
|
+
* with the given name takes to execute.
|
266
|
+
* @param {String} name The name of the function whose data should be returned.
|
267
|
+
* If an object type method, it should be 'constructor.prototype.methodName';
|
268
|
+
* a normal object method would just be 'object.methodName'.
|
269
|
+
* @return {float} The average time it takes the function to execute.
|
270
|
+
* @method getAverage
|
271
|
+
* @static
|
272
|
+
*/
|
273
|
+
getAverage : function (name /*:String*/) /*:float*/ {
|
274
|
+
return report[name].avg;
|
275
|
+
},
|
276
|
+
|
277
|
+
/**
|
278
|
+
* Returns the number of times that the given function has been called.
|
279
|
+
* @param {String} name The name of the function whose data should be returned.
|
280
|
+
* @return {int} The number of times the function was called.
|
281
|
+
* @method getCallCount
|
282
|
+
* @static
|
283
|
+
*/
|
284
|
+
getCallCount : function (name /*:String*/) /*:int*/ {
|
285
|
+
return report[name].calls;
|
286
|
+
},
|
287
|
+
|
288
|
+
/**
|
289
|
+
* Returns the maximum amount of time (in milliseconds) that the function
|
290
|
+
* with the given name takes to execute.
|
291
|
+
* @param {String} name The name of the function whose data should be returned.
|
292
|
+
* If an object type method, it should be 'constructor.prototype.methodName';
|
293
|
+
* a normal object method would just be 'object.methodName'.
|
294
|
+
* @return {float} The maximum time it takes the function to execute.
|
295
|
+
* @method getMax
|
296
|
+
* @static
|
297
|
+
*/
|
298
|
+
getMax : function (name /*:String*/) /*:int*/ {
|
299
|
+
return report[name].max;
|
300
|
+
},
|
301
|
+
|
302
|
+
/**
|
303
|
+
* Returns the minimum amount of time (in milliseconds) that the function
|
304
|
+
* with the given name takes to execute.
|
305
|
+
* @param {String} name The name of the function whose data should be returned.
|
306
|
+
* If an object type method, it should be 'constructor.prototype.methodName';
|
307
|
+
* a normal object method would just be 'object.methodName'.
|
308
|
+
* @return {float} The minimum time it takes the function to execute.
|
309
|
+
* @method getMin
|
310
|
+
* @static
|
311
|
+
*/
|
312
|
+
getMin : function (name /*:String*/) /*:int*/ {
|
313
|
+
return report[name].min;
|
314
|
+
},
|
315
|
+
|
316
|
+
/**
|
317
|
+
* Returns an object containing profiling data for a single function.
|
318
|
+
* The object has an entry for min, max, avg, calls, and points).
|
319
|
+
* @return {Object} An object containing profile data for a given function.
|
320
|
+
* @method getFunctionReport
|
321
|
+
* @static
|
322
|
+
* @deprecated Use getReport() instead.
|
323
|
+
*/
|
324
|
+
getFunctionReport : function (name /*:String*/) /*:Object*/ {
|
325
|
+
return report[name];
|
326
|
+
},
|
327
|
+
|
328
|
+
/**
|
329
|
+
* Returns an object containing profiling data for a single function.
|
330
|
+
* The object has an entry for min, max, avg, calls, and points).
|
331
|
+
* @return {Object} An object containing profile data for a given function.
|
332
|
+
* @method getReport
|
333
|
+
* @static
|
334
|
+
*/
|
335
|
+
getReport : function (name /*:String*/) /*:Object*/ {
|
336
|
+
return report[name];
|
337
|
+
},
|
338
|
+
|
339
|
+
/**
|
340
|
+
* Returns an object containing profiling data for all of the functions
|
341
|
+
* that were profiled. The object has an entry for each function and
|
342
|
+
* returns all information (min, max, average, calls, etc.) for each
|
343
|
+
* function.
|
344
|
+
* @return {Object} An object containing all profile data.
|
345
|
+
* @static
|
346
|
+
*/
|
347
|
+
getFullReport : function (filter /*:Function*/) /*:Object*/ {
|
348
|
+
filter = filter || function(){return true;};
|
349
|
+
|
350
|
+
if (lang.isFunction(filter)) {
|
351
|
+
var fullReport = {};
|
352
|
+
|
353
|
+
for (var name in report){
|
354
|
+
if (filter(report[name])){
|
355
|
+
fullReport[name] = report[name];
|
356
|
+
}
|
357
|
+
}
|
358
|
+
|
359
|
+
return fullReport;
|
360
|
+
}
|
361
|
+
},
|
362
|
+
|
363
|
+
//-------------------------------------------------------------------------
|
364
|
+
// Profiling Methods
|
365
|
+
//-------------------------------------------------------------------------
|
366
|
+
|
367
|
+
/**
|
368
|
+
* Sets up a constructor for profiling, including all properties and methods on the prototype.
|
369
|
+
* @param {string} name The fully-qualified name of the function including namespace information.
|
370
|
+
* @param {Object} owner (Optional) The object that owns the function (namespace or containing object).
|
371
|
+
* @return {Void}
|
372
|
+
* @method registerConstructor
|
373
|
+
* @static
|
374
|
+
*/
|
375
|
+
registerConstructor : function (name /*:String*/, owner /*:Object*/) /*:Void*/ {
|
376
|
+
this.registerFunction(name, owner, true);
|
377
|
+
},
|
378
|
+
|
379
|
+
/**
|
380
|
+
* Sets up a function for profiling. It essentially overwrites the function with one
|
381
|
+
* that has instrumentation data. This method also creates an entry for the function
|
382
|
+
* in the profile report. The original function is stored on the container object.
|
383
|
+
* @param {String} name The full name of the function including namespacing. This
|
384
|
+
* is the name of the function that is stored in the report.
|
385
|
+
* @param {Object} owner (Optional) The object that owns the function. If the function
|
386
|
+
* isn't global then this argument is required. This could be the namespace that
|
387
|
+
* the function belongs to, such as YAHOO.util.Dom, or the object on which it's
|
388
|
+
* a method.
|
389
|
+
* @param {Boolean} registerPrototype (Optional) Indicates that the prototype should
|
390
|
+
* also be instrumented. Setting to true has the same effect as calling
|
391
|
+
* registerConstructor().
|
392
|
+
* @return {Void}
|
393
|
+
* @method registerFunction
|
394
|
+
* @static
|
395
|
+
*/
|
396
|
+
registerFunction : function(name /*:String*/, owner /*:Object*/, registerPrototype /*:Boolean*/) /*:Void*/{
|
397
|
+
|
398
|
+
//figure out the function name without namespacing
|
399
|
+
var funcName = (name.indexOf(".") > -1 ?
|
400
|
+
name.substring(name.lastIndexOf(".")+1) : name),
|
401
|
+
method,
|
402
|
+
prototype;
|
403
|
+
|
404
|
+
//if owner isn't an object, try to find it from the name
|
405
|
+
if (!lang.isObject(owner)){
|
406
|
+
owner = eval(name.substring(0, name.lastIndexOf(".")));
|
407
|
+
}
|
408
|
+
|
409
|
+
//get the method and prototype
|
410
|
+
method = owner[funcName];
|
411
|
+
prototype = method.prototype;
|
412
|
+
|
413
|
+
//see if the method has already been registered
|
414
|
+
if (lang.isFunction(method) && !method.__yuiProfiled){
|
415
|
+
|
416
|
+
//replace the function with the profiling one
|
417
|
+
owner[funcName] = this.instrument(name, method);
|
418
|
+
|
419
|
+
/*
|
420
|
+
* Store original function information. We store the actual
|
421
|
+
* function as well as the owner and the name used to identify
|
422
|
+
* the function so it can be restored later.
|
423
|
+
*/
|
424
|
+
container[name].__yuiOwner = owner;
|
425
|
+
container[name].__yuiFuncName = funcName; //overwrite with less-specific name
|
426
|
+
|
427
|
+
//register prototype if necessary
|
428
|
+
if (registerPrototype) {
|
429
|
+
this.registerObject(name + ".prototype", prototype);
|
430
|
+
}
|
431
|
+
|
432
|
+
}
|
433
|
+
|
434
|
+
},
|
435
|
+
|
436
|
+
|
437
|
+
/**
|
438
|
+
* Sets up an object for profiling. It takes the object and looks for functions.
|
439
|
+
* When a function is found, registerMethod() is called on it. If set to recrusive
|
440
|
+
* mode, it will also setup objects found inside of this object for profiling,
|
441
|
+
* using the same methodology.
|
442
|
+
* @param {String} name The name of the object to profile (shows up in report).
|
443
|
+
* @param {Object} owner (Optional) The object represented by the name.
|
444
|
+
* @param {Boolean} recurse (Optional) Determines if subobject methods are also profiled.
|
445
|
+
* @return {Void}
|
446
|
+
* @method registerObject
|
447
|
+
* @static
|
448
|
+
*/
|
449
|
+
registerObject : function (name /*:String*/, object /*:Object*/, recurse /*:Boolean*/) /*:Void*/{
|
450
|
+
|
451
|
+
//get the object
|
452
|
+
object = (lang.isObject(object) ? object : eval(name));
|
453
|
+
|
454
|
+
//save the object
|
455
|
+
container[name] = object;
|
456
|
+
|
457
|
+
for (var prop in object) {
|
458
|
+
if (typeof object[prop] == "function"){
|
459
|
+
if (prop != "constructor" && prop != "superclass"){ //don't do constructor or superclass, it's recursive
|
460
|
+
this.registerFunction(name + "." + prop, object);
|
461
|
+
}
|
462
|
+
} else if (typeof object[prop] == "object" && recurse){
|
463
|
+
this.registerObject(name + "." + prop, object[prop], recurse);
|
464
|
+
}
|
465
|
+
}
|
466
|
+
|
467
|
+
},
|
468
|
+
|
469
|
+
/**
|
470
|
+
* Removes a constructor function from profiling. Reverses the registerConstructor() method.
|
471
|
+
* @param {String} name The full name of the function including namespacing. This
|
472
|
+
* is the name of the function that is stored in the report.
|
473
|
+
* @return {Void}
|
474
|
+
* @method unregisterFunction
|
475
|
+
* @static
|
476
|
+
*/
|
477
|
+
unregisterConstructor : function(name /*:String*/) /*:Void*/{
|
478
|
+
|
479
|
+
//see if the method has been registered
|
480
|
+
if (lang.isFunction(container[name])){
|
481
|
+
this.unregisterFunction(name, true);
|
482
|
+
}
|
483
|
+
},
|
484
|
+
|
485
|
+
/**
|
486
|
+
* Removes function from profiling. Reverses the registerFunction() method.
|
487
|
+
* @param {String} name The full name of the function including namespacing. This
|
488
|
+
* is the name of the function that is stored in the report.
|
489
|
+
* @return {Void}
|
490
|
+
* @method unregisterFunction
|
491
|
+
* @static
|
492
|
+
*/
|
493
|
+
unregisterFunction : function(name /*:String*/, unregisterPrototype /*:Boolean*/) /*:Void*/{
|
494
|
+
|
495
|
+
//see if the method has been registered
|
496
|
+
if (lang.isFunction(container[name])){
|
497
|
+
|
498
|
+
//check to see if you should unregister the prototype
|
499
|
+
if (unregisterPrototype){
|
500
|
+
this.unregisterObject(name + ".prototype", container[name].prototype);
|
501
|
+
}
|
502
|
+
|
503
|
+
//get original data
|
504
|
+
var owner /*:Object*/ = container[name].__yuiOwner,
|
505
|
+
funcName /*:String*/ = container[name].__yuiFuncName;
|
506
|
+
|
507
|
+
//delete extra information
|
508
|
+
delete container[name].__yuiOwner;
|
509
|
+
delete container[name].__yuiFuncName;
|
510
|
+
|
511
|
+
//replace instrumented function
|
512
|
+
owner[funcName] = container[name];
|
513
|
+
|
514
|
+
//delete supporting information
|
515
|
+
delete container[name];
|
516
|
+
}
|
517
|
+
|
518
|
+
|
519
|
+
},
|
520
|
+
|
521
|
+
/**
|
522
|
+
* Unregisters an object for profiling. It takes the object and looks for functions.
|
523
|
+
* When a function is found, unregisterMethod() is called on it. If set to recrusive
|
524
|
+
* mode, it will also unregister objects found inside of this object,
|
525
|
+
* using the same methodology.
|
526
|
+
* @param {String} name The name of the object to unregister.
|
527
|
+
* @param {Boolean} recurse (Optional) Determines if subobject methods should also be
|
528
|
+
* unregistered.
|
529
|
+
* @return {Void}
|
530
|
+
* @method unregisterObject
|
531
|
+
* @static
|
532
|
+
*/
|
533
|
+
unregisterObject : function (name /*:String*/, recurse /*:Boolean*/) /*:Void*/{
|
534
|
+
|
535
|
+
//get the object
|
536
|
+
if (lang.isObject(container[name])){
|
537
|
+
var object = container[name];
|
538
|
+
|
539
|
+
for (var prop in object) {
|
540
|
+
if (typeof object[prop] == "function"){
|
541
|
+
this.unregisterFunction(name + "." + prop);
|
542
|
+
} else if (typeof object[prop] == "object" && recurse){
|
543
|
+
this.unregisterObject(name + "." + prop, recurse);
|
544
|
+
}
|
545
|
+
}
|
546
|
+
|
547
|
+
delete container[name];
|
548
|
+
}
|
549
|
+
|
550
|
+
}
|
551
|
+
|
552
|
+
|
553
|
+
};
|
554
|
+
|
555
|
+
}();
|
556
|
+
|
557
|
+
YAHOO.register("profiler", YAHOO.tool.Profiler, {version: "2.8.1", build: "19"});
|