PluginProbe
CSS & JavaScript Toolbox / 6.0.11
CSS & JavaScript Toolbox v6.0.11
trunk 0.3 0.8 10 10.1 11 11.2 11.3 11.4 11.5 11.6 11.7 11.8 11.9 11.9.1 12 12.0 12.0.1 12.0.3 12.0.4 12.0.5 12.0.6 12.0.7 6.0 6.0.11 All 60 releases
css-javascript-toolbox / framework / js / utilities / utilities.js

utilities.js in CSS & JavaScript Toolbox 6.0.11, at framework/js/utilities/utilities.js

40 lines 571 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 *
3 */
4
5 var CJTUtilities;
6
7 /**
8 *
9 */
10 (function($) {
11
12 /**
13 * put your comment there...
14 *
15 * @type Object
16 */
17 CJTUtilities = {
18
19 /**
20 * put your comment there...
21 *
22 * @param string
23 */
24 parseString : function(str, exp) {
25 // Initialize!
26 var data = {};
27 var property;
28 // Set default expression if not specified.
29 exp = exp ? exp : /([^\=\&]+)\=([^\&]+)/g;
30 // Get all properties!
31 while (property = exp.exec(str)) {
32 // Set single item!
33 data[property[1]] = property[2];
34 }
35 return data;
36 }
37
38 } // End module!
39
40 })(jQuery);