-
Notifications
You must be signed in to change notification settings - Fork 7
/
README
39 lines (27 loc) · 886 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
jQuery Doom Tweaks Plugin (check Firebug console to see the results)
Tweak your jQuery framework with handy additional functions.
$.l() - alias for console.log() functions - check for Firebug existance
Examples
$(document).ready(function () {
$.l($('div'));
});
$.t() - display UNIX time in seconds (like PHP timestamp() functions does)
Examples
$(document).ready(function () {
$.time();
});
$.lt() - log the code run time to the Firebug console
Examples
$(document).ready(function () {
$.lt();
$('div');
$.lt();
});
$.bm() - benchmark your code
Examples
$(document).ready(function () {
$.bm("var divs = $('.testdiv', '#pageBody');"); // 2353 on Firebug 3.6
$.bm("var divs = $('#pageBody').find('.testdiv');"); // 2324 on Firebug 3.6
$.bm("var divs = $('#pageBody .testdiv');"); // 2469 on Firebug 3.6
});
$.mockAjax({mockUrl: '/ajax_mocks'}); - mock your ajax calls