mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-06-06 16:39:01 +00:00
Obliterate Browser 38
This commit is contained in:
@@ -1,45 +0,0 @@
|
||||
function add(a, b, k) {
|
||||
var result = a + b;
|
||||
return k(result);
|
||||
}
|
||||
|
||||
function sub(a, b, k) {
|
||||
var result = a - b;
|
||||
return k(result);
|
||||
}
|
||||
|
||||
function mul(a, b, k) {
|
||||
var result = a * b;
|
||||
return k(result);
|
||||
}
|
||||
|
||||
function div(a, b, k) {
|
||||
var result = a / b;
|
||||
return k(result);
|
||||
}
|
||||
|
||||
function arithmetic() {
|
||||
add(4, 4, function (a) {
|
||||
// 8
|
||||
sub(a, 2, function (b) {
|
||||
// 6
|
||||
mul(b, 3, function (c) {
|
||||
// 18
|
||||
div(c, 2, function (d) {
|
||||
// 9
|
||||
console.log(d);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
// Compile with closure compiler and the following flags:
|
||||
//
|
||||
// --compilation_level WHITESPACE_ONLY
|
||||
// --source_map_format V3
|
||||
// --create_source_map code_math.map
|
||||
// --js_output_file code_math.min.js
|
||||
//
|
||||
// And then append the sourceMappingURL comment directive to code_math.min.js
|
||||
// manually.
|
||||
Reference in New Issue
Block a user