blob: 20d73babbe3233be4aa1743cea5e9da16af65504 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
actual = '';
expected = 'nocrash,';
function jQuery(a, c) {
}
jQuery.fn = {};
(function() {
var e =
["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"];
for (var i = 0; i < e.length; i++) {
new function() {
var o = e[i];
jQuery.fn[o] = function(f) {
return this.bind(o, f);
}
};
}
})();
appendToActual('nocrash')
assertEq(actual, expected)
|