├── docs ├── nd │ ├── Data │ │ ├── ClassHierarchy.nd │ │ ├── ImageFileInfo.nd │ │ ├── ImageReferenceTable.nd │ │ ├── SymbolTable.nd │ │ ├── ConfigFileInfo.nd │ │ ├── IndexInfo.nd │ │ ├── PreviousSettings.nd │ │ ├── PreviousMenuState.nd │ │ └── FileInfo.nd │ ├── Menu.txt │ ├── Topics.txt │ └── Languages.txt ├── styles │ ├── main.css │ └── 2.css ├── index.html ├── search │ ├── NoResults.html │ ├── GeneralL.html │ ├── GeneralE.html │ ├── GeneralF.html │ ├── GeneralR.html │ ├── GeneralD.html │ ├── GeneralS.html │ ├── GeneralT.html │ ├── FunctionsD.html │ ├── FunctionsT.html │ ├── GeneralN.html │ ├── FilesJ.html │ └── GeneralJ.html ├── javascript │ └── searchdata.js └── index │ ├── Files.html │ ├── Functions.html │ └── General.html ├── examples ├── donate.gif ├── config.php ├── debounce │ └── index.php ├── index.php └── throttle │ └── index.php ├── shared └── SyntaxHighlighter │ ├── styles │ ├── help.png │ ├── printer.png │ ├── wrapping.png │ ├── magnifier.png │ ├── page_white_code.png │ ├── page_white_copy.png │ ├── shThemeEmacs.css │ ├── shThemeMidnight.css │ ├── shThemeDjango.css │ ├── shThemeRDark.css │ ├── shThemeFadeToGrey.css │ ├── shThemeDefault.css │ └── shCore.css │ ├── scripts │ ├── clipboard.swf │ ├── shBrushPlain.js │ ├── shBrushDiff.js │ ├── shBrushJScript.js │ ├── shBrushPython.js │ ├── shBrushScala.js │ ├── shBrushJava.js │ ├── shBrushXml.js │ ├── shBrushRuby.js │ ├── shLegacy.js │ ├── shBrushJavaFX.js │ ├── shBrushCSharp.js │ ├── shBrushVb.js │ ├── shBrushDelphi.js │ ├── shBrushAS3.js │ ├── shBrushBash.js │ ├── shBrushGroovy.js │ ├── shBrushSql.js │ ├── shBrushPerl.js │ ├── shBrushPowerShell.js │ ├── shBrushPhp.js │ ├── shBrushCpp.js │ └── shBrushCss.js │ ├── test.html │ ├── src │ └── shLegacy.js │ └── LGPLv3.txt ├── jquery.ba-throttle-debounce.min.js ├── unit ├── jquery-1.3.2.html ├── index.html ├── qunit.css └── unit.js ├── LICENSE-MIT └── README.markdown /docs/nd/Data/ClassHierarchy.nd: -------------------------------------------------------------------------------- 1 | ( -------------------------------------------------------------------------------- /docs/nd/Data/ImageFileInfo.nd: -------------------------------------------------------------------------------- 1 | ( -------------------------------------------------------------------------------- /docs/nd/Data/ImageReferenceTable.nd: -------------------------------------------------------------------------------- 1 | ( -------------------------------------------------------------------------------- /docs/styles/main.css: -------------------------------------------------------------------------------- 1 | @import URL("1.css"); 2 | @import URL("2.css"); 3 | -------------------------------------------------------------------------------- /examples/donate.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-throttle-debounce/master/examples/donate.gif -------------------------------------------------------------------------------- /docs/nd/Data/SymbolTable.nd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-throttle-debounce/master/docs/nd/Data/SymbolTable.nd -------------------------------------------------------------------------------- /docs/index.html: -------------------------------------------------------------------------------- 1 |
-------------------------------------------------------------------------------- /docs/nd/Data/ConfigFileInfo.nd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-throttle-debounce/master/docs/nd/Data/ConfigFileInfo.nd -------------------------------------------------------------------------------- /docs/nd/Data/IndexInfo.nd: -------------------------------------------------------------------------------- 1 | ( General Function File -------------------------------------------------------------------------------- /docs/nd/Data/PreviousSettings.nd: -------------------------------------------------------------------------------- 1 | ( &/srv/projects/jquery-throttle-debounce 1 +/srv/projects/jquery-throttle-debounce/docs HTML -------------------------------------------------------------------------------- /shared/SyntaxHighlighter/styles/help.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-throttle-debounce/master/shared/SyntaxHighlighter/styles/help.png -------------------------------------------------------------------------------- /shared/SyntaxHighlighter/styles/printer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-throttle-debounce/master/shared/SyntaxHighlighter/styles/printer.png -------------------------------------------------------------------------------- /shared/SyntaxHighlighter/styles/wrapping.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-throttle-debounce/master/shared/SyntaxHighlighter/styles/wrapping.png -------------------------------------------------------------------------------- /shared/SyntaxHighlighter/scripts/clipboard.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-throttle-debounce/master/shared/SyntaxHighlighter/scripts/clipboard.swf -------------------------------------------------------------------------------- /shared/SyntaxHighlighter/styles/magnifier.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-throttle-debounce/master/shared/SyntaxHighlighter/styles/magnifier.png -------------------------------------------------------------------------------- /shared/SyntaxHighlighter/styles/page_white_code.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-throttle-debounce/master/shared/SyntaxHighlighter/styles/page_white_code.png -------------------------------------------------------------------------------- /shared/SyntaxHighlighter/styles/page_white_copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-throttle-debounce/master/shared/SyntaxHighlighter/styles/page_white_copy.png -------------------------------------------------------------------------------- /docs/nd/Data/PreviousMenuState.nd: -------------------------------------------------------------------------------- 1 | ( jQuery throttle / debounce E/srv/projects/jquery-throttle-debounce/jquery.ba-throttle-debounce.js Index 2 | Everything general Files file Functions function -------------------------------------------------------------------------------- /docs/nd/Data/FileInfo.nd: -------------------------------------------------------------------------------- 1 | 1.4 2 | JavaScript 3 | /srv/projects/jquery-throttle-debounce/jquery.ba-throttle-debounce.min.js 1267989058 0 /srv/projects/jquery-throttle-debounce/jquery.ba-throttle-debounce.min.js 4 | /srv/projects/jquery-throttle-debounce/jquery.ba-throttle-debounce.js 1267988294 1 jQuery throttle / debounce: Sometimes, less is more! 5 | -------------------------------------------------------------------------------- /examples/config.php: -------------------------------------------------------------------------------- 1 | 8 | Project Home, 9 | Documentation, 10 | Source 11 | 12 | $shell['h3'] = ob_get_contents(); 13 | ob_end_clean(); 14 | 15 | $shell['jquery'] = 'jquery-1.4.2.js'; 16 | //$shell['jquery'] = 'jquery-1.3.2.js'; 17 | 18 | $shell['shBrush'] = array( 'JScript' ); 19 | 20 | ?> 21 | -------------------------------------------------------------------------------- /jquery.ba-throttle-debounce.min.js: -------------------------------------------------------------------------------- 1 | /* 2 | * jQuery throttle / debounce - v1.1 - 3/7/2010 3 | * http://benalman.com/projects/jquery-throttle-debounce-plugin/ 4 | * 5 | * Copyright (c) 2010 "Cowboy" Ben Alman 6 | * Dual licensed under the MIT and GPL licenses. 7 | * http://benalman.com/about/license/ 8 | */ 9 | (function(b,c){var $=b.jQuery||b.Cowboy||(b.Cowboy={}),a;$.throttle=a=function(e,f,j,i){var h,d=0;if(typeof f!=="boolean"){i=j;j=f;f=c}function g(){var o=this,m=+new Date()-d,n=arguments;function l(){d=+new Date();j.apply(o,n)}function k(){h=c}if(i&&!h){l()}h&&clearTimeout(h);if(i===c&&m>e){l()}else{if(f!==true){h=setTimeout(i?k:l,i===c?e-m:e)}}}if($.guid){g.guid=j.guid=j.guid||$.guid++}return g};$.debounce=function(d,e,f){return f===c?a(d,e,false):a(d,f,e!==false)}})(this); -------------------------------------------------------------------------------- /docs/search/NoResults.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |23 | These unit tests include jQuery .... To view the unit tests using 24 | jQuery 1.4.2, click here 25 |
26 |23 | These unit tests include jQuery .... To view the unit tests using 24 | jQuery 1.3.2, click here 25 |
26 |This is a test file to insure that everything is working well.
35 | 36 |
37 | function test() : String
38 | {
39 | return 10;
40 | }
41 |
42 |
43 |
--------------------------------------------------------------------------------
/shared/SyntaxHighlighter/scripts/shBrushJScript.js:
--------------------------------------------------------------------------------
1 | /**
2 | * SyntaxHighlighter
3 | * http://alexgorbatchev.com/
4 | *
5 | * SyntaxHighlighter is donationware. If you are using it, please donate.
6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
7 | *
8 | * @version
9 | * 2.0.320 (May 03 2009)
10 | *
11 | * @copyright
12 | * Copyright (C) 2004-2009 Alex Gorbatchev.
13 | *
14 | * @license
15 | * This file is part of SyntaxHighlighter.
16 | *
17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify
18 | * it under the terms of the GNU Lesser General Public License as published by
19 | * the Free Software Foundation, either version 3 of the License, or
20 | * (at your option) any later version.
21 | *
22 | * SyntaxHighlighter is distributed in the hope that it will be useful,
23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 | * GNU General Public License for more details.
26 | *
27 | * You should have received a copy of the GNU General Public License
28 | * along with SyntaxHighlighter. If not, see | J | |
| jQuery throttle/ |
| D | |
| debounce, jQuery | |
| T | |
| throttle, jQuery |
110 | Using jQuery throttle / debounce, you can pass a delay and function to $.debounce to get a new function, that when called repetitively, executes the original function just once per "bunch" of calls.
111 |
113 | This can be especially useful for rate limiting execution of handlers on events that will trigger AJAX requests. Just take a look at this example to see for yourself! 114 |
115 | 116 |Give this "pretend autocomplete" field a try. After typing a sentence you'll see why debouncing is a good idea!
118 | 121 | 122 |127 | (No, there is no actual AJAX request happening here, but if there was, that not-debounced version would be killing your server) 128 |
129 | 130 |133 | = htmlspecialchars( $shell['script'] ); ?> 134 |135 | 136 | 137 | $shell['html_body'] = ob_get_contents(); 138 | ob_end_clean(); 139 | 140 | // ========================================================================== // 141 | // DRAW SHELL 142 | // ========================================================================== // 143 | 144 | draw_shell(); 145 | 146 | ?> 147 | -------------------------------------------------------------------------------- /shared/SyntaxHighlighter/scripts/shBrushPowerShell.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/ 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate 7 | * 8 | * @version 9 | * 2.0.320 (May 03 2009) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2009 Alex Gorbatchev. 13 | * 14 | * @license 15 | * This file is part of SyntaxHighlighter. 16 | * 17 | * SyntaxHighlighter is free software: you can redistribute it and/or modify 18 | * it under the terms of the GNU Lesser General Public License as published by 19 | * the Free Software Foundation, either version 3 of the License, or 20 | * (at your option) any later version. 21 | * 22 | * SyntaxHighlighter is distributed in the hope that it will be useful, 23 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 24 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 25 | * GNU General Public License for more details. 26 | * 27 | * You should have received a copy of the GNU General Public License 28 | * along with SyntaxHighlighter. If not, see
Your generous donation allows me to continue developing and updating my code!
15 | 21 | 22 |
159 | Using jQuery throttle / debounce, you can pass a delay and function to $.throttle to get a new function, that when called repetitively, executes the original function (in the same context and with all arguments passed through) no more than once every delay milliseconds.
160 |
162 | This can be especially useful for rate limiting execution of handlers on events like resize and scroll. Just take a look at the examples to see for yourself! 163 |
164 | 165 |172 | = htmlspecialchars( $shell['script1'] ); ?> 173 |174 | 175 |
181 | = htmlspecialchars( $shell['script2'] ); ?> 182 |183 | 184 | 185 | 186 | 187 | $shell['html_body'] = ob_get_contents(); 188 | ob_end_clean(); 189 | 190 | // ========================================================================== // 191 | // DRAW SHELL 192 | // ========================================================================== // 193 | 194 | draw_shell(); 195 | 196 | ?> 197 | -------------------------------------------------------------------------------- /docs/index/General.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
| D | |
| debounce, jQuery | |
| E | |
| Examples | |
| F | |
| Functions | |
| J | |
| jQuery throttle/ | |
| L | |
| License | |
| N | |
| Note for non-jQuery users | |
| R | |
| Release History | |
| S | |
| Support and Testing | |
| T | |
| throttle, jQuery |