Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function () {
- var __scope_0 = Array(3);
- var __scope_1 = function (__selector) {
- var __captured;
- switch (__selector) {
- case 0:
- __captured = ["red"];
- break;
- case 1:
- __captured = ["green"];
- break;
- case 2:
- __captured = ["blue"];
- break;
- default:
- throw new Error("Unknown scope selector");
- }
- __scope_0[__selector] = __captured;
- return __captured;
- };
- var $_0 = function (__scope_2) {
- var __captured__scope_2 = __scope_0[__scope_2] || __scope_1(__scope_2);
- return __captured__scope_2[0];
- };
- var $_1 = function (__scope_2, newColor) {
- var __captured__scope_2 = __scope_0[__scope_2] || __scope_1(__scope_2);
- __captured__scope_2[0] = newColor;
- };
- var _2 = $_0.bind(null, 0);
- var _4 = $_1.bind(null, 0);
- var _6 = $_0.bind(null, 1);
- var _8 = $_1.bind(null, 1);
- var _A = $_0.bind(null, 2);
- var _C = $_1.bind(null, 2);
- cars = [{
- getColor: _2,
- paint: _4
- }, {
- getColor: _6,
- paint: _8
- }, {
- getColor: _A,
- paint: _C
- }];
- })();
Add Comment
Please, Sign In to add comment