Comparing version 0.0.1 to 0.1.0
@@ -1,1 +0,1 @@ | ||
{"filter":false,"title":"beforecb.js","tooltip":"/beforecb.js","undoManager":{"mark":100,"position":100,"stack":[[{"start":{"row":6,"column":21},"end":{"row":6,"column":22},"action":"insert","lines":["u"],"id":583}],[{"start":{"row":6,"column":22},"end":{"row":6,"column":23},"action":"insert","lines":["l"],"id":584}],[{"start":{"row":6,"column":23},"end":{"row":6,"column":24},"action":"insert","lines":["l"],"id":585}],[{"start":{"row":6,"column":24},"end":{"row":6,"column":25},"action":"insert","lines":[";"],"id":586}],[{"start":{"row":5,"column":0},"end":{"row":6,"column":0},"action":"remove","lines":[" var cbFn = null;",""],"id":587}],[{"start":{"row":8,"column":16},"end":{"row":8,"column":31},"action":"remove","lines":["cbFn = args[i];"],"id":588}],[{"start":{"row":8,"column":16},"end":{"row":8,"column":17},"action":"insert","lines":["c"],"id":589}],[{"start":{"row":8,"column":17},"end":{"row":8,"column":18},"action":"insert","lines":["b"],"id":590}],[{"start":{"row":8,"column":18},"end":{"row":8,"column":19},"action":"insert","lines":["N"],"id":591}],[{"start":{"row":8,"column":19},"end":{"row":8,"column":20},"action":"insert","lines":["u"],"id":592}],[{"start":{"row":8,"column":20},"end":{"row":8,"column":21},"action":"insert","lines":["m"],"id":593}],[{"start":{"row":8,"column":21},"end":{"row":8,"column":22},"action":"insert","lines":[" "],"id":594}],[{"start":{"row":8,"column":22},"end":{"row":8,"column":23},"action":"insert","lines":["="],"id":595}],[{"start":{"row":8,"column":23},"end":{"row":8,"column":24},"action":"insert","lines":[" "],"id":596}],[{"start":{"row":8,"column":24},"end":{"row":8,"column":25},"action":"insert","lines":["i"],"id":597}],[{"start":{"row":8,"column":25},"end":{"row":8,"column":26},"action":"insert","lines":[";"],"id":598}],[{"start":{"row":11,"column":7},"end":{"row":11,"column":8},"action":"insert","lines":[" "],"id":599}],[{"start":{"row":11,"column":8},"end":{"row":11,"column":9},"action":"insert","lines":["i"],"id":600}],[{"start":{"row":11,"column":9},"end":{"row":11,"column":10},"action":"insert","lines":["f"],"id":601}],[{"start":{"row":11,"column":10},"end":{"row":11,"column":11},"action":"insert","lines":[" "],"id":602}],[{"start":{"row":11,"column":10},"end":{"row":11,"column":11},"action":"remove","lines":[" "],"id":603}],[{"start":{"row":11,"column":9},"end":{"row":11,"column":10},"action":"remove","lines":["f"],"id":604}],[{"start":{"row":11,"column":8},"end":{"row":11,"column":9},"action":"remove","lines":["i"],"id":605}],[{"start":{"row":11,"column":8},"end":{"row":12,"column":0},"action":"insert","lines":["",""],"id":606},{"start":{"row":12,"column":0},"end":{"row":12,"column":8},"action":"insert","lines":[" "]}],[{"start":{"row":12,"column":8},"end":{"row":12,"column":9},"action":"insert","lines":["i"],"id":607}],[{"start":{"row":12,"column":9},"end":{"row":12,"column":10},"action":"insert","lines":["f"],"id":608}],[{"start":{"row":12,"column":10},"end":{"row":12,"column":11},"action":"insert","lines":[" "],"id":609}],[{"start":{"row":12,"column":11},"end":{"row":12,"column":13},"action":"insert","lines":["()"],"id":610}],[{"start":{"row":12,"column":12},"end":{"row":12,"column":13},"action":"insert","lines":["c"],"id":611}],[{"start":{"row":12,"column":13},"end":{"row":12,"column":14},"action":"insert","lines":["b"],"id":612}],[{"start":{"row":12,"column":14},"end":{"row":12,"column":15},"action":"insert","lines":["N"],"id":613}],[{"start":{"row":12,"column":15},"end":{"row":12,"column":16},"action":"insert","lines":["u"],"id":614}],[{"start":{"row":12,"column":16},"end":{"row":12,"column":17},"action":"insert","lines":["m"],"id":615}],[{"start":{"row":12,"column":17},"end":{"row":12,"column":18},"action":"insert","lines":[" "],"id":616}],[{"start":{"row":12,"column":18},"end":{"row":12,"column":19},"action":"insert","lines":["!"],"id":617}],[{"start":{"row":12,"column":19},"end":{"row":12,"column":20},"action":"insert","lines":["="],"id":618}],[{"start":{"row":12,"column":20},"end":{"row":12,"column":21},"action":"insert","lines":["="],"id":619}],[{"start":{"row":12,"column":21},"end":{"row":12,"column":22},"action":"insert","lines":[" "],"id":620}],[{"start":{"row":12,"column":22},"end":{"row":12,"column":23},"action":"insert","lines":["n"],"id":621}],[{"start":{"row":12,"column":23},"end":{"row":12,"column":24},"action":"insert","lines":["u"],"id":622}],[{"start":{"row":12,"column":24},"end":{"row":12,"column":25},"action":"insert","lines":["l"],"id":623}],[{"start":{"row":12,"column":25},"end":{"row":12,"column":26},"action":"insert","lines":["l"],"id":624}],[{"start":{"row":12,"column":28},"end":{"row":12,"column":29},"action":"insert","lines":["{"],"id":625}],[{"start":{"row":13,"column":8},"end":{"row":13,"column":12},"action":"insert","lines":[" "],"id":626}],[{"start":{"row":13,"column":44},"end":{"row":14,"column":0},"action":"insert","lines":["",""],"id":627},{"start":{"row":14,"column":0},"end":{"row":14,"column":12},"action":"insert","lines":[" "]}],[{"start":{"row":14,"column":8},"end":{"row":14,"column":12},"action":"remove","lines":[" "],"id":628}],[{"start":{"row":14,"column":8},"end":{"row":14,"column":9},"action":"insert","lines":["}"],"id":629}],[{"start":{"row":13,"column":12},"end":{"row":13,"column":13},"action":"insert","lines":["a"],"id":630}],[{"start":{"row":13,"column":13},"end":{"row":13,"column":14},"action":"insert","lines":["r"],"id":631}],[{"start":{"row":13,"column":14},"end":{"row":13,"column":15},"action":"insert","lines":["g"],"id":632}],[{"start":{"row":13,"column":15},"end":{"row":13,"column":16},"action":"insert","lines":["s"],"id":633}],[{"start":{"row":13,"column":16},"end":{"row":13,"column":17},"action":"insert","lines":["["],"id":634}],[{"start":{"row":13,"column":17},"end":{"row":13,"column":18},"action":"insert","lines":["c"],"id":635}],[{"start":{"row":13,"column":18},"end":{"row":13,"column":19},"action":"insert","lines":["b"],"id":636}],[{"start":{"row":13,"column":19},"end":{"row":13,"column":20},"action":"insert","lines":["N"],"id":637}],[{"start":{"row":13,"column":20},"end":{"row":13,"column":21},"action":"insert","lines":["u"],"id":638}],[{"start":{"row":13,"column":21},"end":{"row":13,"column":22},"action":"insert","lines":["m"],"id":639}],[{"start":{"row":13,"column":22},"end":{"row":13,"column":23},"action":"insert","lines":["]"],"id":640}],[{"start":{"row":13,"column":23},"end":{"row":13,"column":24},"action":"insert","lines":[" "],"id":641}],[{"start":{"row":13,"column":24},"end":{"row":13,"column":25},"action":"insert","lines":["="],"id":642}],[{"start":{"row":13,"column":25},"end":{"row":13,"column":26},"action":"insert","lines":[" "],"id":643}],[{"start":{"row":13,"column":30},"end":{"row":13,"column":31},"action":"remove","lines":["["],"id":644}],[{"start":{"row":13,"column":29},"end":{"row":13,"column":30},"action":"remove","lines":["s"],"id":645}],[{"start":{"row":13,"column":28},"end":{"row":13,"column":29},"action":"remove","lines":["g"],"id":646}],[{"start":{"row":13,"column":27},"end":{"row":13,"column":28},"action":"remove","lines":["r"],"id":647}],[{"start":{"row":13,"column":26},"end":{"row":13,"column":27},"action":"remove","lines":["a"],"id":648}],[{"start":{"row":12,"column":29},"end":{"row":13,"column":0},"action":"insert","lines":["",""],"id":649},{"start":{"row":13,"column":0},"end":{"row":13,"column":12},"action":"insert","lines":[" "]}],[{"start":{"row":13,"column":0},"end":{"row":14,"column":0},"action":"remove","lines":[" ",""],"id":650}],[{"start":{"row":13,"column":35},"end":{"row":13,"column":39},"action":"remove","lines":["cbFn"],"id":651}],[{"start":{"row":13,"column":35},"end":{"row":13,"column":36},"action":"insert","lines":["a"],"id":652}],[{"start":{"row":13,"column":36},"end":{"row":13,"column":37},"action":"insert","lines":["r"],"id":653}],[{"start":{"row":13,"column":37},"end":{"row":13,"column":38},"action":"insert","lines":["g"],"id":654}],[{"start":{"row":13,"column":38},"end":{"row":13,"column":39},"action":"insert","lines":["s"],"id":655}],[{"start":{"row":13,"column":39},"end":{"row":13,"column":41},"action":"insert","lines":["[]"],"id":656}],[{"start":{"row":13,"column":40},"end":{"row":13,"column":41},"action":"insert","lines":["c"],"id":657}],[{"start":{"row":13,"column":41},"end":{"row":13,"column":42},"action":"insert","lines":["b"],"id":658}],[{"start":{"row":13,"column":42},"end":{"row":13,"column":43},"action":"insert","lines":["N"],"id":659}],[{"start":{"row":13,"column":43},"end":{"row":13,"column":44},"action":"insert","lines":["u"],"id":660}],[{"start":{"row":13,"column":44},"end":{"row":13,"column":45},"action":"insert","lines":["m"],"id":661}],[{"start":{"row":15,"column":23},"end":{"row":15,"column":32},"action":"remove","lines":["arguments"],"id":662}],[{"start":{"row":15,"column":23},"end":{"row":15,"column":24},"action":"insert","lines":["a"],"id":663}],[{"start":{"row":15,"column":24},"end":{"row":15,"column":25},"action":"insert","lines":["r"],"id":664}],[{"start":{"row":15,"column":25},"end":{"row":15,"column":26},"action":"insert","lines":["g"],"id":665}],[{"start":{"row":15,"column":26},"end":{"row":15,"column":27},"action":"insert","lines":["s"],"id":666}],[{"start":{"row":16,"column":5},"end":{"row":17,"column":0},"action":"insert","lines":["",""],"id":667},{"start":{"row":17,"column":0},"end":{"row":17,"column":4},"action":"insert","lines":[" "]}],[{"start":{"row":17,"column":4},"end":{"row":18,"column":0},"action":"insert","lines":["",""],"id":668},{"start":{"row":18,"column":0},"end":{"row":18,"column":4},"action":"insert","lines":[" "]}],[{"start":{"row":18,"column":4},"end":{"row":18,"column":5},"action":"insert","lines":["r"],"id":669}],[{"start":{"row":18,"column":5},"end":{"row":18,"column":6},"action":"insert","lines":["e"],"id":670}],[{"start":{"row":18,"column":6},"end":{"row":18,"column":7},"action":"insert","lines":["t"],"id":671}],[{"start":{"row":18,"column":7},"end":{"row":18,"column":8},"action":"insert","lines":["u"],"id":672}],[{"start":{"row":18,"column":8},"end":{"row":18,"column":9},"action":"insert","lines":["r"],"id":673}],[{"start":{"row":18,"column":9},"end":{"row":18,"column":10},"action":"insert","lines":["n"],"id":674}],[{"start":{"row":18,"column":10},"end":{"row":18,"column":11},"action":"insert","lines":[" "],"id":675}],[{"start":{"row":18,"column":11},"end":{"row":18,"column":12},"action":"insert","lines":["w"],"id":676}],[{"start":{"row":18,"column":12},"end":{"row":18,"column":13},"action":"insert","lines":["r"],"id":677}],[{"start":{"row":18,"column":13},"end":{"row":18,"column":14},"action":"insert","lines":["a"],"id":678}],[{"start":{"row":18,"column":14},"end":{"row":18,"column":15},"action":"insert","lines":["p"],"id":679}],[{"start":{"row":18,"column":11},"end":{"row":18,"column":15},"action":"remove","lines":["wrap"],"id":680},{"start":{"row":18,"column":11},"end":{"row":18,"column":28},"action":"insert","lines":["wrappedFunction()"]}],[{"start":{"row":18,"column":26},"end":{"row":18,"column":27},"action":"remove","lines":["("],"id":681}],[{"start":{"row":18,"column":26},"end":{"row":18,"column":27},"action":"remove","lines":[")"],"id":682}],[{"start":{"row":18,"column":26},"end":{"row":18,"column":27},"action":"insert","lines":[";"],"id":683}]]},"ace":{"folds":[],"scrolltop":0,"scrollleft":0,"selection":{"start":{"row":14,"column":9},"end":{"row":14,"column":9},"isBackwards":false},"options":{"guessTabSize":true,"useWrapMode":false,"wrapToView":true},"firstLineState":0},"timestamp":1451403497707,"hash":"0dc227db3886bfd00fddce58f7fcf73052cee89f"} | ||
{"filter":false,"title":"beforecb.js","tooltip":"/beforecb.js","undoManager":{"mark":100,"position":100,"stack":[[{"start":{"row":24,"column":52},"end":{"row":25,"column":43},"action":"remove","lines":["("," beforeCbFn(function() {"],"id":1210},{"start":{"row":24,"column":52},"end":{"row":24,"column":77},"action":"insert","lines":["( beforeCbFn(function() {"]}],[{"start":{"row":24,"column":54},"end":{"row":24,"column":64},"action":"remove","lines":["beforeCbFn"],"id":1211}],[{"start":{"row":24,"column":53},"end":{"row":24,"column":54},"action":"remove","lines":[" "],"id":1212}],[{"start":{"row":24,"column":53},"end":{"row":24,"column":54},"action":"remove","lines":["("],"id":1213}],[{"start":{"row":26,"column":22},"end":{"row":26,"column":23},"action":"insert","lines":[";"],"id":1214}],[{"start":{"row":26,"column":23},"end":{"row":27,"column":0},"action":"insert","lines":["",""],"id":1215},{"start":{"row":27,"column":0},"end":{"row":27,"column":20},"action":"insert","lines":[" "]}],[{"start":{"row":27,"column":20},"end":{"row":27,"column":21},"action":"insert","lines":["b"],"id":1216}],[{"start":{"row":27,"column":21},"end":{"row":27,"column":22},"action":"insert","lines":["e"],"id":1217}],[{"start":{"row":27,"column":22},"end":{"row":27,"column":23},"action":"insert","lines":["f"],"id":1218}],[{"start":{"row":27,"column":23},"end":{"row":27,"column":24},"action":"insert","lines":["o"],"id":1219}],[{"start":{"row":27,"column":24},"end":{"row":27,"column":25},"action":"insert","lines":["r"],"id":1220}],[{"start":{"row":27,"column":25},"end":{"row":27,"column":26},"action":"insert","lines":["e"],"id":1221}],[{"start":{"row":27,"column":26},"end":{"row":27,"column":27},"action":"insert","lines":["C"],"id":1222}],[{"start":{"row":27,"column":27},"end":{"row":27,"column":28},"action":"insert","lines":["b"],"id":1223}],[{"start":{"row":27,"column":20},"end":{"row":27,"column":28},"action":"remove","lines":["beforeCb"],"id":1224},{"start":{"row":27,"column":20},"end":{"row":27,"column":30},"action":"insert","lines":["beforeCbFn"]}],[{"start":{"row":27,"column":30},"end":{"row":27,"column":31},"action":"insert","lines":["."],"id":1225}],[{"start":{"row":23,"column":39},"end":{"row":24,"column":0},"action":"insert","lines":["",""],"id":1226},{"start":{"row":24,"column":0},"end":{"row":24,"column":20},"action":"insert","lines":[" "]}],[{"start":{"row":24,"column":20},"end":{"row":25,"column":0},"action":"insert","lines":["",""],"id":1227},{"start":{"row":25,"column":0},"end":{"row":25,"column":20},"action":"insert","lines":[" "]}],[{"start":{"row":25,"column":20},"end":{"row":25,"column":21},"action":"insert","lines":["/"],"id":1228}],[{"start":{"row":25,"column":21},"end":{"row":25,"column":22},"action":"insert","lines":["/"],"id":1229}],[{"start":{"row":25,"column":22},"end":{"row":25,"column":23},"action":"insert","lines":[" "],"id":1230}],[{"start":{"row":25,"column":23},"end":{"row":25,"column":24},"action":"insert","lines":["A"],"id":1231}],[{"start":{"row":25,"column":24},"end":{"row":25,"column":25},"action":"insert","lines":["d"],"id":1232}],[{"start":{"row":25,"column":25},"end":{"row":25,"column":26},"action":"insert","lines":["d"],"id":1233}],[{"start":{"row":25,"column":26},"end":{"row":25,"column":27},"action":"insert","lines":[" "],"id":1234}],[{"start":{"row":25,"column":27},"end":{"row":25,"column":28},"action":"insert","lines":["d"],"id":1235}],[{"start":{"row":25,"column":28},"end":{"row":25,"column":29},"action":"insert","lines":["o"],"id":1236}],[{"start":{"row":25,"column":29},"end":{"row":25,"column":30},"action":"insert","lines":["n"],"id":1237}],[{"start":{"row":25,"column":30},"end":{"row":25,"column":31},"action":"insert","lines":["e"],"id":1238}],[{"start":{"row":25,"column":31},"end":{"row":25,"column":32},"action":"insert","lines":[" "],"id":1239}],[{"start":{"row":25,"column":32},"end":{"row":25,"column":33},"action":"insert","lines":["c"],"id":1240}],[{"start":{"row":25,"column":33},"end":{"row":25,"column":34},"action":"insert","lines":["a"],"id":1241}],[{"start":{"row":25,"column":34},"end":{"row":25,"column":35},"action":"insert","lines":["l"],"id":1242}],[{"start":{"row":25,"column":35},"end":{"row":25,"column":36},"action":"insert","lines":["l"],"id":1243}],[{"start":{"row":25,"column":36},"end":{"row":25,"column":37},"action":"insert","lines":["b"],"id":1244}],[{"start":{"row":25,"column":37},"end":{"row":25,"column":38},"action":"insert","lines":["a"],"id":1245}],[{"start":{"row":25,"column":38},"end":{"row":25,"column":39},"action":"insert","lines":["c"],"id":1246}],[{"start":{"row":25,"column":39},"end":{"row":25,"column":40},"action":"insert","lines":["k"],"id":1247}],[{"start":{"row":29,"column":31},"end":{"row":29,"column":32},"action":"insert","lines":["a"],"id":1248}],[{"start":{"row":29,"column":32},"end":{"row":29,"column":33},"action":"insert","lines":["p"],"id":1249}],[{"start":{"row":29,"column":33},"end":{"row":29,"column":34},"action":"insert","lines":["p"],"id":1250}],[{"start":{"row":29,"column":34},"end":{"row":29,"column":35},"action":"insert","lines":["l"],"id":1251}],[{"start":{"row":29,"column":35},"end":{"row":29,"column":36},"action":"insert","lines":["y"],"id":1252}],[{"start":{"row":29,"column":36},"end":{"row":29,"column":38},"action":"insert","lines":["()"],"id":1253}],[{"start":{"row":29,"column":37},"end":{"row":29,"column":38},"action":"insert","lines":["c"],"id":1254}],[{"start":{"row":29,"column":38},"end":{"row":29,"column":39},"action":"insert","lines":["o"],"id":1255}],[{"start":{"row":29,"column":39},"end":{"row":29,"column":40},"action":"insert","lines":["n"],"id":1256}],[{"start":{"row":29,"column":40},"end":{"row":29,"column":41},"action":"insert","lines":["e"],"id":1257}],[{"start":{"row":29,"column":41},"end":{"row":29,"column":42},"action":"insert","lines":["x"],"id":1258}],[{"start":{"row":29,"column":41},"end":{"row":29,"column":42},"action":"remove","lines":["x"],"id":1259}],[{"start":{"row":29,"column":40},"end":{"row":29,"column":41},"action":"remove","lines":["e"],"id":1260}],[{"start":{"row":29,"column":40},"end":{"row":29,"column":41},"action":"insert","lines":["t"],"id":1261}],[{"start":{"row":29,"column":41},"end":{"row":29,"column":42},"action":"insert","lines":["e"],"id":1262}],[{"start":{"row":29,"column":42},"end":{"row":29,"column":43},"action":"insert","lines":["x"],"id":1263}],[{"start":{"row":29,"column":43},"end":{"row":29,"column":44},"action":"insert","lines":["t"],"id":1264}],[{"start":{"row":29,"column":44},"end":{"row":29,"column":45},"action":"insert","lines":[","],"id":1265}],[{"start":{"row":29,"column":45},"end":{"row":29,"column":46},"action":"insert","lines":[" "],"id":1266}],[{"start":{"row":29,"column":46},"end":{"row":29,"column":47},"action":"insert","lines":["c"],"id":1267}],[{"start":{"row":29,"column":47},"end":{"row":29,"column":48},"action":"insert","lines":["b"],"id":1268}],[{"start":{"row":29,"column":47},"end":{"row":29,"column":48},"action":"remove","lines":["b"],"id":1269}],[{"start":{"row":29,"column":46},"end":{"row":29,"column":47},"action":"remove","lines":["c"],"id":1270}],[{"start":{"row":29,"column":46},"end":{"row":29,"column":47},"action":"insert","lines":["b"],"id":1271}],[{"start":{"row":29,"column":47},"end":{"row":29,"column":48},"action":"insert","lines":["e"],"id":1272}],[{"start":{"row":29,"column":48},"end":{"row":29,"column":49},"action":"insert","lines":["f"],"id":1273}],[{"start":{"row":29,"column":49},"end":{"row":29,"column":50},"action":"insert","lines":["o"],"id":1274}],[{"start":{"row":29,"column":50},"end":{"row":29,"column":51},"action":"insert","lines":["r"],"id":1275}],[{"start":{"row":29,"column":51},"end":{"row":29,"column":52},"action":"insert","lines":["e"],"id":1276}],[{"start":{"row":29,"column":52},"end":{"row":29,"column":53},"action":"insert","lines":["C"],"id":1277}],[{"start":{"row":29,"column":53},"end":{"row":29,"column":54},"action":"insert","lines":["b"],"id":1278}],[{"start":{"row":29,"column":54},"end":{"row":29,"column":55},"action":"insert","lines":["F"],"id":1279}],[{"start":{"row":29,"column":55},"end":{"row":29,"column":56},"action":"insert","lines":["n"],"id":1280}],[{"start":{"row":29,"column":56},"end":{"row":29,"column":57},"action":"insert","lines":["A"],"id":1281}],[{"start":{"row":29,"column":57},"end":{"row":29,"column":58},"action":"insert","lines":["r"],"id":1282}],[{"start":{"row":29,"column":58},"end":{"row":29,"column":59},"action":"insert","lines":["g"],"id":1283}],[{"start":{"row":29,"column":59},"end":{"row":29,"column":60},"action":"insert","lines":["s"],"id":1284}],[{"start":{"row":29,"column":61},"end":{"row":29,"column":62},"action":"insert","lines":[";"],"id":1285}],[{"start":{"row":26,"column":48},"end":{"row":26,"column":52},"action":"remove","lines":["push"],"id":1286}],[{"start":{"row":26,"column":48},"end":{"row":26,"column":49},"action":"insert","lines":["c"],"id":1287}],[{"start":{"row":26,"column":49},"end":{"row":26,"column":50},"action":"insert","lines":["o"],"id":1288}],[{"start":{"row":26,"column":50},"end":{"row":26,"column":51},"action":"insert","lines":["n"],"id":1289}],[{"start":{"row":26,"column":51},"end":{"row":26,"column":52},"action":"insert","lines":["c"],"id":1290}],[{"start":{"row":26,"column":52},"end":{"row":26,"column":53},"action":"insert","lines":["a"],"id":1291}],[{"start":{"row":26,"column":53},"end":{"row":26,"column":54},"action":"insert","lines":["t"],"id":1292}],[{"start":{"row":26,"column":54},"end":{"row":26,"column":55},"action":"insert","lines":["["],"id":1293}],[{"start":{"row":26,"column":55},"end":{"row":26,"column":56},"action":"remove","lines":["("],"id":1294}],[{"start":{"row":26,"column":54},"end":{"row":26,"column":55},"action":"remove","lines":["["],"id":1295}],[{"start":{"row":26,"column":54},"end":{"row":26,"column":55},"action":"insert","lines":["("],"id":1296}],[{"start":{"row":26,"column":55},"end":{"row":26,"column":56},"action":"insert","lines":["["],"id":1297}],[{"start":{"row":28,"column":21},"end":{"row":28,"column":22},"action":"insert","lines":["]"],"id":1298}],[{"start":{"row":27,"column":63},"end":{"row":27,"column":64},"action":"insert","lines":[";"],"id":1299}],[{"start":{"row":15,"column":41},"end":{"row":15,"column":42},"action":"insert","lines":["t"],"id":1300}],[{"start":{"row":15,"column":42},"end":{"row":15,"column":43},"action":"insert","lines":["h"],"id":1301}],[{"start":{"row":15,"column":43},"end":{"row":15,"column":44},"action":"insert","lines":["i"],"id":1302}],[{"start":{"row":15,"column":44},"end":{"row":15,"column":45},"action":"insert","lines":["s"],"id":1303}],[{"start":{"row":15,"column":45},"end":{"row":15,"column":46},"action":"insert","lines":[","],"id":1304}],[{"start":{"row":15,"column":46},"end":{"row":15,"column":47},"action":"insert","lines":[" "],"id":1305}],[{"start":{"row":26,"column":20},"end":{"row":26,"column":24},"action":"remove","lines":["var "],"id":1306}],[{"start":{"row":26,"column":20},"end":{"row":26,"column":21},"action":"insert","lines":["v"],"id":1307}],[{"start":{"row":26,"column":21},"end":{"row":26,"column":22},"action":"insert","lines":["a"],"id":1308}],[{"start":{"row":26,"column":22},"end":{"row":26,"column":23},"action":"insert","lines":["r"],"id":1309}],[{"start":{"row":26,"column":23},"end":{"row":26,"column":24},"action":"insert","lines":[" "],"id":1310}]]},"ace":{"folds":[],"scrolltop":0,"scrollleft":0,"selection":{"start":{"row":27,"column":23},"end":{"row":27,"column":23},"isBackwards":false},"options":{"guessTabSize":true,"useWrapMode":false,"wrapToView":true},"firstLineState":0},"timestamp":1451492960818,"hash":"3e067138c5f5a86c0abc80b2aebe36b318e2dbd0"} |
@@ -1,1 +0,1 @@ | ||
{"filter":false,"title":"package.json","tooltip":"/package.json","undoManager":{"mark":19,"position":19,"stack":[[{"start":{"row":0,"column":0},"end":{"row":44,"column":1},"action":"insert","lines":["{","\"name\": \"beforefn\",","\"version\": \"3.0.1\",","\"main\": \"beforefn.js\",","\"scripts\": {","\"pretest\": \"npm run prepublish\",","\"prepublish\": \"babel index.js > beforefn.js\",","\"test\": \"babel-node test/index.js\",","\"bench\": \"node bench >> bench/Readme.md\"","},","\"author\": \"Tim Oxley\",","\"license\": \"MIT\",","\"devDependencies\": {","\"acorn\": \"^2.6.4\",","\"babel\": \"^6.3.26\",","\"babel-cli\": \"^6.3.17\",","\"babel-preset-es2015\": \"^6.3.13\",","\"tape\": \"^4.4.0\"","},","\"babel\": {","\"presets\": [","\"es2015\"","]","},","\"directories\": {","\"example\": \"examples\",","\"test\": \"test\"","},","\"description\": \"Execute a function before a function.\",","\"dependencies\": {},","\"repository\": {","\"type\": \"git\",","\"url\": \"https://github.com/timoxley/beforefn.git\"","},","\"bugs\": {","\"url\": \"https://github.com/timoxley/beforefn/issues\"","},","\"homepage\": \"https://github.com/timoxley/beforefn\",","\"keywords\": [","\"aspect\",","\"aop\",","\"functional\",","\"oriented\"","]","}"],"id":1}],[{"start":{"row":0,"column":0},"end":{"row":44,"column":1},"action":"remove","lines":["{","\"name\": \"beforefn\",","\"version\": \"3.0.1\",","\"main\": \"beforefn.js\",","\"scripts\": {","\"pretest\": \"npm run prepublish\",","\"prepublish\": \"babel index.js > beforefn.js\",","\"test\": \"babel-node test/index.js\",","\"bench\": \"node bench >> bench/Readme.md\"","},","\"author\": \"Tim Oxley\",","\"license\": \"MIT\",","\"devDependencies\": {","\"acorn\": \"^2.6.4\",","\"babel\": \"^6.3.26\",","\"babel-cli\": \"^6.3.17\",","\"babel-preset-es2015\": \"^6.3.13\",","\"tape\": \"^4.4.0\"","},","\"babel\": {","\"presets\": [","\"es2015\"","]","},","\"directories\": {","\"example\": \"examples\",","\"test\": \"test\"","},","\"description\": \"Execute a function before a function.\",","\"dependencies\": {},","\"repository\": {","\"type\": \"git\",","\"url\": \"https://github.com/timoxley/beforefn.git\"","},","\"bugs\": {","\"url\": \"https://github.com/timoxley/beforefn/issues\"","},","\"homepage\": \"https://github.com/timoxley/beforefn\",","\"keywords\": [","\"aspect\",","\"aop\",","\"functional\",","\"oriented\"","]","}"],"id":2}],[{"start":{"row":0,"column":0},"end":{"row":29,"column":0},"action":"insert","lines":["{"," \"name\": \"beforecb\","," \"version\": \"0.0.1\","," \"description\": \"Wrap a function to call a function before its callback is called\","," \"main\": \"beforecb.js\","," \"directories\": {"," \"test\": \"test\""," },"," \"scripts\": {"," \"test\": \"node test\""," },"," \"repository\": {"," \"type\": \"git\","," \"url\": \"git+https://github.com/timjrobinson/beforecb.git\""," },"," \"keywords\": ["," \"before\","," \"callback\","," \"aspect\","," \"aop\","," \"functional\""," ],"," \"author\": \"Tim Robinson\","," \"license\": \"MIT\","," \"bugs\": {"," \"url\": \"https://github.com/timjrobinson/beforecb/issues\""," },"," \"homepage\": \"https://github.com/timjrobinson/beforecb#readme\"","}",""],"id":3,"ignore":true}],[{"start":{"row":9,"column":22},"end":{"row":9,"column":23},"action":"insert","lines":["/"],"id":4}],[{"start":{"row":9,"column":23},"end":{"row":9,"column":24},"action":"insert","lines":["i"],"id":5}],[{"start":{"row":9,"column":24},"end":{"row":9,"column":25},"action":"insert","lines":["n"],"id":6}],[{"start":{"row":9,"column":25},"end":{"row":9,"column":26},"action":"insert","lines":["d"],"id":7}],[{"start":{"row":9,"column":26},"end":{"row":9,"column":27},"action":"insert","lines":["e"],"id":8}],[{"start":{"row":9,"column":27},"end":{"row":9,"column":28},"action":"insert","lines":["x"],"id":9}],[{"start":{"row":9,"column":28},"end":{"row":9,"column":29},"action":"insert","lines":["."],"id":10}],[{"start":{"row":9,"column":29},"end":{"row":9,"column":30},"action":"insert","lines":["j"],"id":11}],[{"start":{"row":9,"column":30},"end":{"row":9,"column":31},"action":"insert","lines":["s"],"id":12}],[{"start":{"row":27,"column":63},"end":{"row":30,"column":3},"action":"insert","lines":[","," \"devDependencies\": {"," \"tape\": \"^4.4.0\""," }"],"id":13,"ignore":true}],[{"start":{"row":4,"column":11},"end":{"row":4,"column":19},"action":"remove","lines":["beforecb"],"id":14}],[{"start":{"row":4,"column":11},"end":{"row":4,"column":12},"action":"insert","lines":["i"],"id":15}],[{"start":{"row":4,"column":12},"end":{"row":4,"column":13},"action":"insert","lines":["n"],"id":16}],[{"start":{"row":4,"column":13},"end":{"row":4,"column":14},"action":"insert","lines":["d"],"id":17}],[{"start":{"row":4,"column":14},"end":{"row":4,"column":15},"action":"insert","lines":["e"],"id":18}],[{"start":{"row":4,"column":15},"end":{"row":4,"column":16},"action":"insert","lines":["x"],"id":19}],[{"start":{"row":30,"column":0},"end":{"row":33,"column":0},"action":"insert","lines":[" },"," \"dependencies\": {"," \"beforefn\": \"^3.0.1\"",""],"id":20,"ignore":true}]]},"ace":{"folds":[],"scrolltop":0,"scrollleft":0,"selection":{"start":{"row":27,"column":55},"end":{"row":27,"column":55},"isBackwards":false},"options":{"guessTabSize":true,"useWrapMode":false,"wrapToView":true},"firstLineState":0},"timestamp":1451402004249,"hash":"6506bbf58301d509e2e8e7df0f54199d6b1db502"} | ||
{"filter":false,"title":"package.json","tooltip":"/package.json","undoManager":{"mark":20,"position":20,"stack":[[{"start":{"row":0,"column":0},"end":{"row":44,"column":1},"action":"insert","lines":["{","\"name\": \"beforefn\",","\"version\": \"3.0.1\",","\"main\": \"beforefn.js\",","\"scripts\": {","\"pretest\": \"npm run prepublish\",","\"prepublish\": \"babel index.js > beforefn.js\",","\"test\": \"babel-node test/index.js\",","\"bench\": \"node bench >> bench/Readme.md\"","},","\"author\": \"Tim Oxley\",","\"license\": \"MIT\",","\"devDependencies\": {","\"acorn\": \"^2.6.4\",","\"babel\": \"^6.3.26\",","\"babel-cli\": \"^6.3.17\",","\"babel-preset-es2015\": \"^6.3.13\",","\"tape\": \"^4.4.0\"","},","\"babel\": {","\"presets\": [","\"es2015\"","]","},","\"directories\": {","\"example\": \"examples\",","\"test\": \"test\"","},","\"description\": \"Execute a function before a function.\",","\"dependencies\": {},","\"repository\": {","\"type\": \"git\",","\"url\": \"https://github.com/timoxley/beforefn.git\"","},","\"bugs\": {","\"url\": \"https://github.com/timoxley/beforefn/issues\"","},","\"homepage\": \"https://github.com/timoxley/beforefn\",","\"keywords\": [","\"aspect\",","\"aop\",","\"functional\",","\"oriented\"","]","}"],"id":1}],[{"start":{"row":0,"column":0},"end":{"row":44,"column":1},"action":"remove","lines":["{","\"name\": \"beforefn\",","\"version\": \"3.0.1\",","\"main\": \"beforefn.js\",","\"scripts\": {","\"pretest\": \"npm run prepublish\",","\"prepublish\": \"babel index.js > beforefn.js\",","\"test\": \"babel-node test/index.js\",","\"bench\": \"node bench >> bench/Readme.md\"","},","\"author\": \"Tim Oxley\",","\"license\": \"MIT\",","\"devDependencies\": {","\"acorn\": \"^2.6.4\",","\"babel\": \"^6.3.26\",","\"babel-cli\": \"^6.3.17\",","\"babel-preset-es2015\": \"^6.3.13\",","\"tape\": \"^4.4.0\"","},","\"babel\": {","\"presets\": [","\"es2015\"","]","},","\"directories\": {","\"example\": \"examples\",","\"test\": \"test\"","},","\"description\": \"Execute a function before a function.\",","\"dependencies\": {},","\"repository\": {","\"type\": \"git\",","\"url\": \"https://github.com/timoxley/beforefn.git\"","},","\"bugs\": {","\"url\": \"https://github.com/timoxley/beforefn/issues\"","},","\"homepage\": \"https://github.com/timoxley/beforefn\",","\"keywords\": [","\"aspect\",","\"aop\",","\"functional\",","\"oriented\"","]","}"],"id":2}],[{"start":{"row":0,"column":0},"end":{"row":29,"column":0},"action":"insert","lines":["{"," \"name\": \"beforecb\","," \"version\": \"0.0.1\","," \"description\": \"Wrap a function to call a function before its callback is called\","," \"main\": \"beforecb.js\","," \"directories\": {"," \"test\": \"test\""," },"," \"scripts\": {"," \"test\": \"node test\""," },"," \"repository\": {"," \"type\": \"git\","," \"url\": \"git+https://github.com/timjrobinson/beforecb.git\""," },"," \"keywords\": ["," \"before\","," \"callback\","," \"aspect\","," \"aop\","," \"functional\""," ],"," \"author\": \"Tim Robinson\","," \"license\": \"MIT\","," \"bugs\": {"," \"url\": \"https://github.com/timjrobinson/beforecb/issues\""," },"," \"homepage\": \"https://github.com/timjrobinson/beforecb#readme\"","}",""],"id":3,"ignore":true}],[{"start":{"row":9,"column":22},"end":{"row":9,"column":23},"action":"insert","lines":["/"],"id":4}],[{"start":{"row":9,"column":23},"end":{"row":9,"column":24},"action":"insert","lines":["i"],"id":5}],[{"start":{"row":9,"column":24},"end":{"row":9,"column":25},"action":"insert","lines":["n"],"id":6}],[{"start":{"row":9,"column":25},"end":{"row":9,"column":26},"action":"insert","lines":["d"],"id":7}],[{"start":{"row":9,"column":26},"end":{"row":9,"column":27},"action":"insert","lines":["e"],"id":8}],[{"start":{"row":9,"column":27},"end":{"row":9,"column":28},"action":"insert","lines":["x"],"id":9}],[{"start":{"row":9,"column":28},"end":{"row":9,"column":29},"action":"insert","lines":["."],"id":10}],[{"start":{"row":9,"column":29},"end":{"row":9,"column":30},"action":"insert","lines":["j"],"id":11}],[{"start":{"row":9,"column":30},"end":{"row":9,"column":31},"action":"insert","lines":["s"],"id":12}],[{"start":{"row":27,"column":63},"end":{"row":30,"column":3},"action":"insert","lines":[","," \"devDependencies\": {"," \"tape\": \"^4.4.0\""," }"],"id":13,"ignore":true}],[{"start":{"row":4,"column":11},"end":{"row":4,"column":19},"action":"remove","lines":["beforecb"],"id":14}],[{"start":{"row":4,"column":11},"end":{"row":4,"column":12},"action":"insert","lines":["i"],"id":15}],[{"start":{"row":4,"column":12},"end":{"row":4,"column":13},"action":"insert","lines":["n"],"id":16}],[{"start":{"row":4,"column":13},"end":{"row":4,"column":14},"action":"insert","lines":["d"],"id":17}],[{"start":{"row":4,"column":14},"end":{"row":4,"column":15},"action":"insert","lines":["e"],"id":18}],[{"start":{"row":4,"column":15},"end":{"row":4,"column":16},"action":"insert","lines":["x"],"id":19}],[{"start":{"row":30,"column":0},"end":{"row":33,"column":0},"action":"insert","lines":[" },"," \"dependencies\": {"," \"beforefn\": \"^3.0.1\"",""],"id":20,"ignore":true}],[{"start":{"row":2,"column":16},"end":{"row":2,"column":19},"action":"remove","lines":["0.1"],"id":21,"ignore":true},{"start":{"row":2,"column":16},"end":{"row":2,"column":19},"action":"insert","lines":["1.0"]}]]},"ace":{"folds":[],"scrolltop":0,"scrollleft":0,"selection":{"start":{"row":29,"column":20},"end":{"row":29,"column":20},"isBackwards":false},"options":{"guessTabSize":true,"useWrapMode":false,"wrapToView":true},"firstLineState":0},"timestamp":1451402004249,"hash":"c95f543fdea2a10e13fbf807f35442ec544e4d37"} |
@@ -1,1 +0,1 @@ | ||
{"filter":false,"title":"README.md","tooltip":"/README.md","undoManager":{"mark":100,"position":100,"stack":[[{"start":{"row":14,"column":13},"end":{"row":14,"column":14},"action":"insert","lines":["t"],"id":1776}],[{"start":{"row":14,"column":14},"end":{"row":14,"column":15},"action":"insert","lines":["s"],"id":1777}],[{"start":{"row":14,"column":15},"end":{"row":14,"column":16},"action":"insert","lines":[" "],"id":1778}],[{"start":{"row":14,"column":16},"end":{"row":14,"column":17},"action":"insert","lines":["t"],"id":1779}],[{"start":{"row":14,"column":17},"end":{"row":14,"column":18},"action":"insert","lines":["o"],"id":1780}],[{"start":{"row":14,"column":18},"end":{"row":14,"column":19},"action":"insert","lines":[" "],"id":1781}],[{"start":{"row":14,"column":19},"end":{"row":14,"column":20},"action":"insert","lines":["t"],"id":1782}],[{"start":{"row":14,"column":20},"end":{"row":14,"column":21},"action":"insert","lines":["h"],"id":1783}],[{"start":{"row":14,"column":21},"end":{"row":14,"column":22},"action":"insert","lines":["e"],"id":1784}],[{"start":{"row":14,"column":22},"end":{"row":14,"column":23},"action":"insert","lines":[" "],"id":1785}],[{"start":{"row":14,"column":23},"end":{"row":14,"column":24},"action":"insert","lines":["c"],"id":1786}],[{"start":{"row":14,"column":24},"end":{"row":14,"column":25},"action":"insert","lines":["a"],"id":1787}],[{"start":{"row":14,"column":25},"end":{"row":14,"column":26},"action":"insert","lines":["l"],"id":1788}],[{"start":{"row":14,"column":26},"end":{"row":14,"column":27},"action":"insert","lines":["l"],"id":1789}],[{"start":{"row":14,"column":27},"end":{"row":14,"column":28},"action":"insert","lines":["b"],"id":1790}],[{"start":{"row":14,"column":28},"end":{"row":14,"column":29},"action":"insert","lines":["a"],"id":1791}],[{"start":{"row":14,"column":29},"end":{"row":14,"column":30},"action":"insert","lines":["c"],"id":1792}],[{"start":{"row":14,"column":30},"end":{"row":14,"column":31},"action":"insert","lines":["k"],"id":1793}],[{"start":{"row":14,"column":31},"end":{"row":14,"column":32},"action":"insert","lines":[" "],"id":1794}],[{"start":{"row":14,"column":32},"end":{"row":14,"column":33},"action":"insert","lines":["w"],"id":1795}],[{"start":{"row":14,"column":33},"end":{"row":14,"column":34},"action":"insert","lines":["i"],"id":1796}],[{"start":{"row":14,"column":34},"end":{"row":14,"column":35},"action":"insert","lines":["l"],"id":1797}],[{"start":{"row":14,"column":35},"end":{"row":14,"column":36},"action":"insert","lines":["l"],"id":1798}],[{"start":{"row":14,"column":36},"end":{"row":14,"column":37},"action":"insert","lines":[" "],"id":1799}],[{"start":{"row":14,"column":37},"end":{"row":14,"column":38},"action":"insert","lines":["b"],"id":1800}],[{"start":{"row":14,"column":38},"end":{"row":14,"column":39},"action":"insert","lines":["e"],"id":1801}],[{"start":{"row":14,"column":39},"end":{"row":14,"column":40},"action":"insert","lines":[" "],"id":1802}],[{"start":{"row":14,"column":40},"end":{"row":14,"column":41},"action":"insert","lines":["c"],"id":1803}],[{"start":{"row":14,"column":40},"end":{"row":14,"column":41},"action":"remove","lines":["c"],"id":1804}],[{"start":{"row":14,"column":40},"end":{"row":14,"column":41},"action":"insert","lines":["p"],"id":1805}],[{"start":{"row":14,"column":41},"end":{"row":14,"column":42},"action":"insert","lines":["a"],"id":1806}],[{"start":{"row":14,"column":42},"end":{"row":14,"column":43},"action":"insert","lines":["s"],"id":1807}],[{"start":{"row":14,"column":43},"end":{"row":14,"column":44},"action":"insert","lines":["s"],"id":1808}],[{"start":{"row":14,"column":44},"end":{"row":14,"column":45},"action":"insert","lines":["e"],"id":1809}],[{"start":{"row":14,"column":45},"end":{"row":14,"column":46},"action":"insert","lines":["d"],"id":1810}],[{"start":{"row":14,"column":46},"end":{"row":14,"column":47},"action":"insert","lines":[" "],"id":1811}],[{"start":{"row":14,"column":47},"end":{"row":14,"column":48},"action":"insert","lines":["t"],"id":1812}],[{"start":{"row":14,"column":48},"end":{"row":14,"column":49},"action":"insert","lines":["o"],"id":1813}],[{"start":{"row":14,"column":49},"end":{"row":14,"column":50},"action":"insert","lines":[" "],"id":1814}],[{"start":{"row":14,"column":50},"end":{"row":14,"column":51},"action":"insert","lines":["b"],"id":1815}],[{"start":{"row":14,"column":51},"end":{"row":14,"column":52},"action":"insert","lines":["e"],"id":1816}],[{"start":{"row":14,"column":52},"end":{"row":14,"column":53},"action":"insert","lines":["f"],"id":1817}],[{"start":{"row":14,"column":53},"end":{"row":14,"column":54},"action":"insert","lines":["o"],"id":1818}],[{"start":{"row":14,"column":54},"end":{"row":14,"column":55},"action":"insert","lines":["r"],"id":1819}],[{"start":{"row":14,"column":55},"end":{"row":14,"column":56},"action":"insert","lines":["e"],"id":1820}],[{"start":{"row":14,"column":56},"end":{"row":14,"column":57},"action":"insert","lines":["c"],"id":1821}],[{"start":{"row":14,"column":57},"end":{"row":14,"column":58},"action":"insert","lines":["b"],"id":1822}],[{"start":{"row":14,"column":58},"end":{"row":14,"column":59},"action":"insert","lines":[" "],"id":1823}],[{"start":{"row":14,"column":59},"end":{"row":14,"column":60},"action":"insert","lines":["f"],"id":1824}],[{"start":{"row":14,"column":60},"end":{"row":14,"column":61},"action":"insert","lines":["u"],"id":1825}],[{"start":{"row":14,"column":61},"end":{"row":14,"column":62},"action":"insert","lines":["n"],"id":1826}],[{"start":{"row":14,"column":62},"end":{"row":14,"column":63},"action":"insert","lines":["c"],"id":1827}],[{"start":{"row":14,"column":63},"end":{"row":14,"column":64},"action":"insert","lines":["t"],"id":1828}],[{"start":{"row":14,"column":64},"end":{"row":14,"column":65},"action":"insert","lines":["i"],"id":1829}],[{"start":{"row":14,"column":65},"end":{"row":14,"column":66},"action":"insert","lines":["o"],"id":1830}],[{"start":{"row":14,"column":66},"end":{"row":14,"column":67},"action":"insert","lines":["n"],"id":1831}],[{"start":{"row":14,"column":67},"end":{"row":14,"column":68},"action":"insert","lines":["."],"id":1832}],[{"start":{"row":10,"column":2},"end":{"row":10,"column":6},"action":"remove","lines":["API "],"id":1833}],[{"start":{"row":0,"column":10},"end":{"row":1,"column":0},"action":"insert","lines":["",""],"id":1834}],[{"start":{"row":2,"column":0},"end":{"row":2,"column":1},"action":"insert","lines":["#"],"id":1835}],[{"start":{"row":2,"column":1},"end":{"row":2,"column":2},"action":"insert","lines":["#"],"id":1836}],[{"start":{"row":2,"column":2},"end":{"row":2,"column":3},"action":"insert","lines":["#"],"id":1837}],[{"start":{"row":2,"column":3},"end":{"row":2,"column":4},"action":"insert","lines":["#"],"id":1838}],[{"start":{"row":2,"column":4},"end":{"row":2,"column":5},"action":"insert","lines":[" "],"id":1839}],[{"start":{"row":17,"column":1},"end":{"row":17,"column":2},"action":"insert","lines":["#"],"id":1840}],[{"start":{"row":11,"column":1},"end":{"row":11,"column":2},"action":"insert","lines":["#"],"id":1841}],[{"start":{"row":4,"column":1},"end":{"row":4,"column":2},"action":"insert","lines":["#"],"id":1842}],[{"start":{"row":4,"column":8},"end":{"row":4,"column":9},"action":"remove","lines":["s"],"id":1843}],[{"start":{"row":42,"column":3},"end":{"row":43,"column":0},"action":"insert","lines":["",""],"id":1844}],[{"start":{"row":43,"column":0},"end":{"row":44,"column":0},"action":"insert","lines":["",""],"id":1845}],[{"start":{"row":44,"column":0},"end":{"row":49,"column":0},"action":"insert","lines":["","## See Also","","* [timoxley/beforefn](http://github.com/timoxley/beforefn)","* [timoxley/guardfn](http://github.com/timoxley/guardfn)",""],"id":1846}],[{"start":{"row":44,"column":0},"end":{"row":45,"column":0},"action":"remove","lines":["",""],"id":1847}],[{"start":{"row":46,"column":58},"end":{"row":47,"column":58},"action":"insert","lines":["","* [timoxley/beforefn](http://github.com/timoxley/beforefn)"],"id":1848}],[{"start":{"row":47,"column":49},"end":{"row":47,"column":57},"action":"remove","lines":["beforefn"],"id":1849}],[{"start":{"row":47,"column":49},"end":{"row":47,"column":50},"action":"insert","lines":["a"],"id":1850}],[{"start":{"row":47,"column":50},"end":{"row":47,"column":51},"action":"insert","lines":["f"],"id":1851}],[{"start":{"row":47,"column":51},"end":{"row":47,"column":52},"action":"insert","lines":["t"],"id":1852}],[{"start":{"row":47,"column":52},"end":{"row":47,"column":53},"action":"insert","lines":["e"],"id":1853}],[{"start":{"row":47,"column":53},"end":{"row":47,"column":54},"action":"insert","lines":["r"],"id":1854}],[{"start":{"row":47,"column":54},"end":{"row":47,"column":55},"action":"insert","lines":["f"],"id":1855}],[{"start":{"row":47,"column":55},"end":{"row":47,"column":56},"action":"insert","lines":["n"],"id":1856}],[{"start":{"row":47,"column":12},"end":{"row":47,"column":20},"action":"remove","lines":["beforefn"],"id":1857}],[{"start":{"row":47,"column":12},"end":{"row":47,"column":13},"action":"insert","lines":["a"],"id":1858}],[{"start":{"row":47,"column":13},"end":{"row":47,"column":14},"action":"insert","lines":["f"],"id":1859}],[{"start":{"row":47,"column":14},"end":{"row":47,"column":15},"action":"insert","lines":["t"],"id":1860}],[{"start":{"row":47,"column":15},"end":{"row":47,"column":16},"action":"insert","lines":["e"],"id":1861}],[{"start":{"row":47,"column":16},"end":{"row":47,"column":17},"action":"insert","lines":["r"],"id":1862}],[{"start":{"row":47,"column":17},"end":{"row":47,"column":18},"action":"insert","lines":["f"],"id":1863}],[{"start":{"row":47,"column":18},"end":{"row":47,"column":19},"action":"insert","lines":["n"],"id":1864}],[{"start":{"row":48,"column":0},"end":{"row":49,"column":0},"action":"remove","lines":["* [timoxley/guardfn](http://github.com/timoxley/guardfn)",""],"id":1865}],[{"start":{"row":48,"column":0},"end":{"row":49,"column":0},"action":"remove","lines":["",""],"id":1866}],[{"start":{"row":47,"column":56},"end":{"row":48,"column":0},"action":"remove","lines":["",""],"id":1867}],[{"start":{"row":28,"column":83},"end":{"row":28,"column":84},"action":"insert","lines":["w"],"id":1868}],[{"start":{"row":28,"column":84},"end":{"row":28,"column":85},"action":"insert","lines":["r"],"id":1869}],[{"start":{"row":28,"column":85},"end":{"row":28,"column":86},"action":"insert","lines":["a"],"id":1870}],[{"start":{"row":28,"column":86},"end":{"row":28,"column":87},"action":"insert","lines":["p"],"id":1871}],[{"start":{"row":28,"column":87},"end":{"row":28,"column":88},"action":"insert","lines":["p"],"id":1872}],[{"start":{"row":28,"column":88},"end":{"row":28,"column":89},"action":"insert","lines":["i"],"id":1873}],[{"start":{"row":28,"column":89},"end":{"row":28,"column":90},"action":"insert","lines":["n"],"id":1874}],[{"start":{"row":28,"column":90},"end":{"row":28,"column":91},"action":"insert","lines":["g"],"id":1875}],[{"start":{"row":28,"column":91},"end":{"row":28,"column":92},"action":"insert","lines":[" "],"id":1876}]]},"ace":{"folds":[],"scrolltop":0,"scrollleft":0,"selection":{"start":{"row":28,"column":92},"end":{"row":28,"column":92},"isBackwards":false},"options":{"guessTabSize":true,"useWrapMode":false,"wrapToView":true},"firstLineState":0},"timestamp":1451424717847,"hash":"98bc5569353f65ad4c45b25a9deb791bcb55d09f"} | ||
{"filter":false,"title":"README.md","tooltip":"/README.md","undoManager":{"mark":100,"position":100,"stack":[[{"start":{"row":31,"column":86},"end":{"row":31,"column":87},"action":"insert","lines":["n"],"id":3656}],[{"start":{"row":31,"column":87},"end":{"row":31,"column":88},"action":"insert","lines":[" "],"id":3657}],[{"start":{"row":31,"column":88},"end":{"row":31,"column":89},"action":"insert","lines":["t"],"id":3658}],[{"start":{"row":31,"column":89},"end":{"row":31,"column":90},"action":"insert","lines":["h"],"id":3659}],[{"start":{"row":31,"column":90},"end":{"row":31,"column":91},"action":"insert","lines":["e"],"id":3660}],[{"start":{"row":31,"column":91},"end":{"row":31,"column":92},"action":"insert","lines":[" "],"id":3661}],[{"start":{"row":31,"column":92},"end":{"row":31,"column":93},"action":"insert","lines":["`"],"id":3662}],[{"start":{"row":31,"column":93},"end":{"row":31,"column":94},"action":"insert","lines":["d"],"id":3663}],[{"start":{"row":31,"column":94},"end":{"row":31,"column":95},"action":"insert","lines":["o"],"id":3664}],[{"start":{"row":31,"column":95},"end":{"row":31,"column":96},"action":"insert","lines":["n"],"id":3665}],[{"start":{"row":31,"column":96},"end":{"row":31,"column":97},"action":"insert","lines":["e"],"id":3666}],[{"start":{"row":31,"column":97},"end":{"row":31,"column":98},"action":"insert","lines":["`"],"id":3667}],[{"start":{"row":31,"column":98},"end":{"row":31,"column":99},"action":"insert","lines":[" "],"id":3668}],[{"start":{"row":31,"column":99},"end":{"row":31,"column":100},"action":"insert","lines":["f"],"id":3669}],[{"start":{"row":31,"column":100},"end":{"row":31,"column":101},"action":"insert","lines":["u"],"id":3670}],[{"start":{"row":31,"column":101},"end":{"row":31,"column":102},"action":"insert","lines":["n"],"id":3671}],[{"start":{"row":31,"column":102},"end":{"row":31,"column":103},"action":"insert","lines":["c"],"id":3672}],[{"start":{"row":31,"column":103},"end":{"row":31,"column":104},"action":"insert","lines":["t"],"id":3673}],[{"start":{"row":31,"column":104},"end":{"row":31,"column":105},"action":"insert","lines":["i"],"id":3674}],[{"start":{"row":31,"column":105},"end":{"row":31,"column":106},"action":"insert","lines":["n"],"id":3675}],[{"start":{"row":31,"column":106},"end":{"row":31,"column":107},"action":"insert","lines":["o"],"id":3676}],[{"start":{"row":31,"column":107},"end":{"row":31,"column":108},"action":"insert","lines":[" "],"id":3677}],[{"start":{"row":31,"column":108},"end":{"row":31,"column":109},"action":"insert","lines":["i"],"id":3678}],[{"start":{"row":31,"column":109},"end":{"row":31,"column":110},"action":"insert","lines":["s"],"id":3679}],[{"start":{"row":31,"column":109},"end":{"row":31,"column":110},"action":"remove","lines":["s"],"id":3680}],[{"start":{"row":31,"column":108},"end":{"row":31,"column":109},"action":"remove","lines":["i"],"id":3681}],[{"start":{"row":31,"column":107},"end":{"row":31,"column":108},"action":"remove","lines":[" "],"id":3682}],[{"start":{"row":31,"column":106},"end":{"row":31,"column":107},"action":"remove","lines":["o"],"id":3683}],[{"start":{"row":31,"column":105},"end":{"row":31,"column":106},"action":"remove","lines":["n"],"id":3684}],[{"start":{"row":31,"column":105},"end":{"row":31,"column":106},"action":"insert","lines":["o"],"id":3685}],[{"start":{"row":31,"column":106},"end":{"row":31,"column":107},"action":"insert","lines":["n"],"id":3686}],[{"start":{"row":31,"column":99},"end":{"row":31,"column":107},"action":"remove","lines":["function"],"id":3687}],[{"start":{"row":31,"column":98},"end":{"row":31,"column":99},"action":"remove","lines":[" "],"id":3688}],[{"start":{"row":31,"column":97},"end":{"row":31,"column":98},"action":"remove","lines":["`"],"id":3689}],[{"start":{"row":31,"column":93},"end":{"row":31,"column":97},"action":"remove","lines":["done"],"id":3690}],[{"start":{"row":31,"column":91},"end":{"row":31,"column":93},"action":"remove","lines":[" `"],"id":3691}],[{"start":{"row":31,"column":88},"end":{"row":31,"column":91},"action":"remove","lines":["the"],"id":3692}],[{"start":{"row":31,"column":87},"end":{"row":31,"column":88},"action":"remove","lines":[" "],"id":3693}],[{"start":{"row":31,"column":83},"end":{"row":31,"column":87},"action":"remove","lines":["then"],"id":3694}],[{"start":{"row":31,"column":83},"end":{"row":31,"column":84},"action":"insert","lines":["a"],"id":3695}],[{"start":{"row":31,"column":84},"end":{"row":31,"column":85},"action":"insert","lines":["n"],"id":3696}],[{"start":{"row":31,"column":85},"end":{"row":31,"column":86},"action":"insert","lines":[" "],"id":3697}],[{"start":{"row":31,"column":85},"end":{"row":31,"column":86},"action":"remove","lines":[" "],"id":3698}],[{"start":{"row":31,"column":85},"end":{"row":31,"column":86},"action":"insert","lines":["d"],"id":3699}],[{"start":{"row":31,"column":86},"end":{"row":31,"column":87},"action":"insert","lines":[" "],"id":3700}],[{"start":{"row":31,"column":87},"end":{"row":31,"column":88},"action":"insert","lines":["t"],"id":3701}],[{"start":{"row":31,"column":88},"end":{"row":31,"column":89},"action":"insert","lines":["h"],"id":3702}],[{"start":{"row":31,"column":89},"end":{"row":31,"column":90},"action":"insert","lines":["e"],"id":3703}],[{"start":{"row":31,"column":90},"end":{"row":31,"column":91},"action":"insert","lines":[" "],"id":3704}],[{"start":{"row":31,"column":91},"end":{"row":31,"column":92},"action":"insert","lines":["1"],"id":3705}],[{"start":{"row":31,"column":91},"end":{"row":31,"column":92},"action":"remove","lines":["1"],"id":3706}],[{"start":{"row":31,"column":91},"end":{"row":31,"column":92},"action":"insert","lines":["`"],"id":3707}],[{"start":{"row":31,"column":92},"end":{"row":31,"column":93},"action":"insert","lines":["d"],"id":3708}],[{"start":{"row":31,"column":93},"end":{"row":31,"column":94},"action":"insert","lines":["o"],"id":3709}],[{"start":{"row":31,"column":94},"end":{"row":31,"column":95},"action":"insert","lines":["n"],"id":3710}],[{"start":{"row":31,"column":95},"end":{"row":31,"column":96},"action":"insert","lines":["e"],"id":3711}],[{"start":{"row":31,"column":96},"end":{"row":31,"column":97},"action":"insert","lines":["`"],"id":3712}],[{"start":{"row":31,"column":97},"end":{"row":31,"column":98},"action":"insert","lines":[" "],"id":3713}],[{"start":{"row":31,"column":98},"end":{"row":31,"column":99},"action":"insert","lines":["f"],"id":3714}],[{"start":{"row":31,"column":99},"end":{"row":31,"column":100},"action":"insert","lines":["u"],"id":3715}],[{"start":{"row":31,"column":100},"end":{"row":31,"column":101},"action":"insert","lines":["n"],"id":3716}],[{"start":{"row":31,"column":101},"end":{"row":31,"column":102},"action":"insert","lines":["c"],"id":3717}],[{"start":{"row":31,"column":102},"end":{"row":31,"column":103},"action":"insert","lines":["t"],"id":3718}],[{"start":{"row":31,"column":103},"end":{"row":31,"column":104},"action":"insert","lines":["i"],"id":3719}],[{"start":{"row":31,"column":104},"end":{"row":31,"column":105},"action":"insert","lines":["o"],"id":3720}],[{"start":{"row":31,"column":105},"end":{"row":31,"column":106},"action":"insert","lines":["n"],"id":3721}],[{"start":{"row":31,"column":106},"end":{"row":31,"column":107},"action":"insert","lines":[" "],"id":3722}],[{"start":{"row":31,"column":107},"end":{"row":31,"column":108},"action":"insert","lines":["w"],"id":3723}],[{"start":{"row":31,"column":108},"end":{"row":31,"column":109},"action":"insert","lines":["i"],"id":3724}],[{"start":{"row":31,"column":109},"end":{"row":31,"column":110},"action":"insert","lines":["l"],"id":3725}],[{"start":{"row":31,"column":110},"end":{"row":31,"column":111},"action":"insert","lines":["l"],"id":3726}],[{"start":{"row":31,"column":111},"end":{"row":31,"column":112},"action":"insert","lines":[" "],"id":3727}],[{"start":{"row":31,"column":112},"end":{"row":31,"column":113},"action":"insert","lines":["b"],"id":3728}],[{"start":{"row":31,"column":113},"end":{"row":31,"column":114},"action":"insert","lines":["e"],"id":3729}],[{"start":{"row":31,"column":114},"end":{"row":31,"column":115},"action":"insert","lines":[" "],"id":3730}],[{"start":{"row":31,"column":115},"end":{"row":31,"column":116},"action":"insert","lines":["t"],"id":3731}],[{"start":{"row":31,"column":116},"end":{"row":31,"column":117},"action":"insert","lines":["h"],"id":3732}],[{"start":{"row":31,"column":117},"end":{"row":31,"column":118},"action":"insert","lines":["e"],"id":3733}],[{"start":{"row":31,"column":118},"end":{"row":31,"column":119},"action":"insert","lines":[" "],"id":3734}],[{"start":{"row":31,"column":119},"end":{"row":31,"column":120},"action":"insert","lines":["l"],"id":3735}],[{"start":{"row":31,"column":120},"end":{"row":31,"column":121},"action":"insert","lines":["a"],"id":3736}],[{"start":{"row":31,"column":121},"end":{"row":31,"column":122},"action":"insert","lines":["s"],"id":3737}],[{"start":{"row":31,"column":122},"end":{"row":31,"column":123},"action":"insert","lines":["t"],"id":3738}],[{"start":{"row":31,"column":123},"end":{"row":31,"column":124},"action":"insert","lines":[" "],"id":3739}],[{"start":{"row":31,"column":124},"end":{"row":31,"column":125},"action":"insert","lines":["a"],"id":3740}],[{"start":{"row":31,"column":125},"end":{"row":31,"column":126},"action":"insert","lines":["r"],"id":3741}],[{"start":{"row":31,"column":126},"end":{"row":31,"column":127},"action":"insert","lines":["g"],"id":3742}],[{"start":{"row":31,"column":127},"end":{"row":31,"column":128},"action":"insert","lines":["u"],"id":3743}],[{"start":{"row":31,"column":128},"end":{"row":31,"column":129},"action":"insert","lines":["m"],"id":3744}],[{"start":{"row":31,"column":129},"end":{"row":31,"column":130},"action":"insert","lines":["e"],"id":3745}],[{"start":{"row":31,"column":130},"end":{"row":31,"column":131},"action":"insert","lines":["n"],"id":3746}],[{"start":{"row":31,"column":131},"end":{"row":31,"column":132},"action":"insert","lines":["t"],"id":3747}],[{"start":{"row":31,"column":132},"end":{"row":31,"column":133},"action":"insert","lines":["."],"id":3748}],[{"start":{"row":29,"column":50},"end":{"row":29,"column":51},"action":"insert","lines":["t"],"id":3749}],[{"start":{"row":29,"column":51},"end":{"row":29,"column":52},"action":"insert","lines":[" "],"id":3750}],[{"start":{"row":29,"column":52},"end":{"row":29,"column":53},"action":"insert","lines":["e"],"id":3751}],[{"start":{"row":29,"column":52},"end":{"row":29,"column":53},"action":"remove","lines":["e"],"id":3752}],[{"start":{"row":29,"column":51},"end":{"row":29,"column":52},"action":"remove","lines":[" "],"id":3753}],[{"start":{"row":29,"column":51},"end":{"row":29,"column":52},"action":"insert","lines":["h"],"id":3754}],[{"start":{"row":29,"column":52},"end":{"row":29,"column":53},"action":"insert","lines":["e"],"id":3755}],[{"start":{"row":29,"column":53},"end":{"row":29,"column":54},"action":"insert","lines":[" "],"id":3756}]]},"ace":{"folds":[],"scrolltop":3,"scrollleft":0,"selection":{"start":{"row":11,"column":5},"end":{"row":11,"column":5},"isBackwards":false},"options":{"guessTabSize":true,"useWrapMode":false,"wrapToView":true},"firstLineState":0},"timestamp":1451493194460,"hash":"ba71b87964a06fa9da80652c4a2c5f3dcec4cb91"} |
@@ -1,1 +0,1 @@ | ||
{"filter":false,"title":"index.js","tooltip":"/test/index.js","undoManager":{"mark":100,"position":100,"stack":[[{"start":{"row":19,"column":21},"end":{"row":19,"column":22},"action":"insert","lines":["i"],"id":1085}],[{"start":{"row":19,"column":22},"end":{"row":19,"column":23},"action":"insert","lines":["p"],"id":1086}],[{"start":{"row":19,"column":23},"end":{"row":19,"column":24},"action":"insert","lines":["l"],"id":1087}],[{"start":{"row":19,"column":24},"end":{"row":19,"column":25},"action":"insert","lines":["e"],"id":1088}],[{"start":{"row":19,"column":25},"end":{"row":19,"column":26},"action":"insert","lines":[" "],"id":1089}],[{"start":{"row":19,"column":26},"end":{"row":19,"column":27},"action":"insert","lines":["a"],"id":1090}],[{"start":{"row":19,"column":27},"end":{"row":19,"column":28},"action":"insert","lines":["r"],"id":1091}],[{"start":{"row":19,"column":28},"end":{"row":19,"column":29},"action":"insert","lines":["g"],"id":1092}],[{"start":{"row":19,"column":29},"end":{"row":19,"column":30},"action":"insert","lines":["u"],"id":1093}],[{"start":{"row":19,"column":30},"end":{"row":19,"column":31},"action":"insert","lines":["m"],"id":1094}],[{"start":{"row":19,"column":31},"end":{"row":19,"column":32},"action":"insert","lines":["e"],"id":1095}],[{"start":{"row":19,"column":32},"end":{"row":19,"column":33},"action":"insert","lines":["n"],"id":1096}],[{"start":{"row":19,"column":33},"end":{"row":19,"column":34},"action":"insert","lines":["t"],"id":1097}],[{"start":{"row":19,"column":34},"end":{"row":19,"column":35},"action":"insert","lines":["s"],"id":1098}],[{"start":{"row":19,"column":35},"end":{"row":19,"column":36},"action":"insert","lines":[" "],"id":1099}],[{"start":{"row":19,"column":36},"end":{"row":19,"column":37},"action":"insert","lines":["a"],"id":1100}],[{"start":{"row":19,"column":37},"end":{"row":19,"column":38},"action":"insert","lines":["r"],"id":1101}],[{"start":{"row":19,"column":38},"end":{"row":19,"column":39},"action":"insert","lines":["e"],"id":1102}],[{"start":{"row":19,"column":39},"end":{"row":19,"column":40},"action":"insert","lines":[" "],"id":1103}],[{"start":{"row":19,"column":40},"end":{"row":19,"column":41},"action":"insert","lines":["p"],"id":1104}],[{"start":{"row":19,"column":41},"end":{"row":19,"column":42},"action":"insert","lines":["a"],"id":1105}],[{"start":{"row":19,"column":42},"end":{"row":19,"column":43},"action":"insert","lines":["s"],"id":1106}],[{"start":{"row":19,"column":43},"end":{"row":19,"column":44},"action":"insert","lines":["s"],"id":1107}],[{"start":{"row":19,"column":44},"end":{"row":19,"column":45},"action":"insert","lines":["e"],"id":1108}],[{"start":{"row":19,"column":45},"end":{"row":19,"column":46},"action":"insert","lines":["d"],"id":1109}],[{"start":{"row":21,"column":24},"end":{"row":21,"column":25},"action":"insert","lines":["1"],"id":1110}],[{"start":{"row":21,"column":25},"end":{"row":21,"column":26},"action":"insert","lines":[","],"id":1111}],[{"start":{"row":21,"column":26},"end":{"row":21,"column":27},"action":"insert","lines":[" "],"id":1112}],[{"start":{"row":21,"column":27},"end":{"row":21,"column":28},"action":"insert","lines":["\""],"id":1113}],[{"start":{"row":21,"column":28},"end":{"row":21,"column":29},"action":"insert","lines":["t"],"id":1114}],[{"start":{"row":21,"column":29},"end":{"row":21,"column":30},"action":"insert","lines":["h"],"id":1115}],[{"start":{"row":21,"column":29},"end":{"row":21,"column":30},"action":"remove","lines":["h"],"id":1116}],[{"start":{"row":21,"column":28},"end":{"row":21,"column":29},"action":"remove","lines":["t"],"id":1117}],[{"start":{"row":21,"column":28},"end":{"row":21,"column":29},"action":"insert","lines":["t"],"id":1118}],[{"start":{"row":21,"column":29},"end":{"row":21,"column":30},"action":"insert","lines":["w"],"id":1119}],[{"start":{"row":21,"column":30},"end":{"row":21,"column":31},"action":"insert","lines":["o"],"id":1120}],[{"start":{"row":21,"column":31},"end":{"row":21,"column":32},"action":"insert","lines":["\""],"id":1121}],[{"start":{"row":21,"column":32},"end":{"row":21,"column":33},"action":"insert","lines":[","],"id":1122}],[{"start":{"row":21,"column":33},"end":{"row":21,"column":34},"action":"insert","lines":[" "],"id":1123}],[{"start":{"row":21,"column":34},"end":{"row":21,"column":35},"action":"insert","lines":["f"],"id":1124}],[{"start":{"row":21,"column":35},"end":{"row":21,"column":36},"action":"insert","lines":["u"],"id":1125}],[{"start":{"row":21,"column":36},"end":{"row":21,"column":37},"action":"insert","lines":["n"],"id":1126}],[{"start":{"row":21,"column":37},"end":{"row":21,"column":38},"action":"insert","lines":["c"],"id":1127}],[{"start":{"row":21,"column":38},"end":{"row":21,"column":39},"action":"insert","lines":["t"],"id":1128}],[{"start":{"row":21,"column":39},"end":{"row":21,"column":40},"action":"insert","lines":["i"],"id":1129}],[{"start":{"row":21,"column":40},"end":{"row":21,"column":41},"action":"insert","lines":["o"],"id":1130}],[{"start":{"row":21,"column":41},"end":{"row":21,"column":42},"action":"insert","lines":["n"],"id":1131}],[{"start":{"row":21,"column":42},"end":{"row":21,"column":43},"action":"insert","lines":["("],"id":1132}],[{"start":{"row":21,"column":43},"end":{"row":21,"column":44},"action":"insert","lines":[")"],"id":1133}],[{"start":{"row":21,"column":44},"end":{"row":21,"column":45},"action":"insert","lines":["{"],"id":1134}],[{"start":{"row":21,"column":45},"end":{"row":21,"column":46},"action":"insert","lines":["}"],"id":1135}],[{"start":{"row":21,"column":46},"end":{"row":21,"column":47},"action":"insert","lines":[" "],"id":1136}],[{"start":{"row":21,"column":46},"end":{"row":21,"column":47},"action":"remove","lines":[" "],"id":1137}],[{"start":{"row":21,"column":46},"end":{"row":21,"column":47},"action":"insert","lines":[","],"id":1138}],[{"start":{"row":21,"column":47},"end":{"row":21,"column":48},"action":"insert","lines":[" "],"id":1139}],[{"start":{"row":21,"column":34},"end":{"row":21,"column":46},"action":"remove","lines":["function(){}"],"id":1140}],[{"start":{"row":21,"column":34},"end":{"row":21,"column":35},"action":"insert","lines":["f"],"id":1141}],[{"start":{"row":21,"column":35},"end":{"row":21,"column":36},"action":"insert","lines":["u"],"id":1142}],[{"start":{"row":21,"column":36},"end":{"row":21,"column":37},"action":"insert","lines":["n"],"id":1143}],[{"start":{"row":21,"column":37},"end":{"row":21,"column":38},"action":"insert","lines":["c"],"id":1144}],[{"start":{"row":21,"column":24},"end":{"row":21,"column":25},"action":"remove","lines":["1"],"id":1145}],[{"start":{"row":21,"column":24},"end":{"row":21,"column":31},"action":"remove","lines":[", \"two\""],"id":1146}],[{"start":{"row":21,"column":24},"end":{"row":21,"column":25},"action":"insert","lines":["n"],"id":1147}],[{"start":{"row":21,"column":25},"end":{"row":21,"column":26},"action":"insert","lines":["u"],"id":1148}],[{"start":{"row":21,"column":26},"end":{"row":21,"column":27},"action":"insert","lines":["m"],"id":1149}],[{"start":{"row":21,"column":27},"end":{"row":21,"column":28},"action":"insert","lines":["b"],"id":1150}],[{"start":{"row":21,"column":28},"end":{"row":21,"column":29},"action":"insert","lines":["e"],"id":1151}],[{"start":{"row":21,"column":29},"end":{"row":21,"column":30},"action":"insert","lines":["r"],"id":1152}],[{"start":{"row":21,"column":30},"end":{"row":21,"column":31},"action":"insert","lines":[","],"id":1153}],[{"start":{"row":21,"column":31},"end":{"row":21,"column":32},"action":"insert","lines":[" "],"id":1154}],[{"start":{"row":21,"column":32},"end":{"row":21,"column":33},"action":"insert","lines":["l"],"id":1155}],[{"start":{"row":21,"column":33},"end":{"row":21,"column":34},"action":"insert","lines":["e"],"id":1156}],[{"start":{"row":21,"column":34},"end":{"row":21,"column":35},"action":"insert","lines":["t"],"id":1157}],[{"start":{"row":21,"column":35},"end":{"row":21,"column":36},"action":"insert","lines":["t"],"id":1158}],[{"start":{"row":21,"column":36},"end":{"row":21,"column":37},"action":"insert","lines":["e"],"id":1159}],[{"start":{"row":21,"column":37},"end":{"row":21,"column":38},"action":"insert","lines":["r"],"id":1160}],[{"start":{"row":27,"column":16},"end":{"row":27,"column":17},"action":"insert","lines":["1"],"id":1161}],[{"start":{"row":27,"column":17},"end":{"row":27,"column":18},"action":"insert","lines":[","],"id":1162}],[{"start":{"row":27,"column":18},"end":{"row":27,"column":19},"action":"insert","lines":[" "],"id":1163}],[{"start":{"row":27,"column":19},"end":{"row":27,"column":20},"action":"insert","lines":["\""],"id":1164}],[{"start":{"row":27,"column":20},"end":{"row":27,"column":21},"action":"insert","lines":["t"],"id":1165}],[{"start":{"row":27,"column":21},"end":{"row":27,"column":22},"action":"insert","lines":["w"],"id":1166}],[{"start":{"row":27,"column":22},"end":{"row":27,"column":23},"action":"insert","lines":["o"],"id":1167}],[{"start":{"row":27,"column":23},"end":{"row":27,"column":24},"action":"insert","lines":["\""],"id":1168}],[{"start":{"row":27,"column":24},"end":{"row":27,"column":25},"action":"insert","lines":[","],"id":1169}],[{"start":{"row":27,"column":25},"end":{"row":27,"column":26},"action":"insert","lines":[" "],"id":1170}],[{"start":{"row":27,"column":26},"end":{"row":27,"column":27},"action":"insert","lines":["f"],"id":1171}],[{"start":{"row":27,"column":27},"end":{"row":27,"column":28},"action":"insert","lines":["u"],"id":1172}],[{"start":{"row":27,"column":28},"end":{"row":27,"column":29},"action":"insert","lines":["n"],"id":1173}],[{"start":{"row":27,"column":29},"end":{"row":27,"column":30},"action":"insert","lines":["c"],"id":1174}],[{"start":{"row":27,"column":30},"end":{"row":27,"column":31},"action":"insert","lines":["t"],"id":1175}],[{"start":{"row":27,"column":31},"end":{"row":27,"column":32},"action":"insert","lines":["i"],"id":1176}],[{"start":{"row":27,"column":32},"end":{"row":27,"column":33},"action":"insert","lines":["o"],"id":1177}],[{"start":{"row":27,"column":33},"end":{"row":27,"column":34},"action":"insert","lines":["n"],"id":1178}],[{"start":{"row":27,"column":34},"end":{"row":27,"column":35},"action":"insert","lines":["("],"id":1179}],[{"start":{"row":27,"column":35},"end":{"row":27,"column":36},"action":"insert","lines":[")"],"id":1180}],[{"start":{"row":27,"column":36},"end":{"row":27,"column":37},"action":"insert","lines":[" "],"id":1181}],[{"start":{"row":27,"column":37},"end":{"row":27,"column":38},"action":"insert","lines":["{"],"id":1182}],[{"start":{"row":27,"column":38},"end":{"row":27,"column":39},"action":"insert","lines":["}"],"id":1183}],[{"start":{"row":27,"column":39},"end":{"row":27,"column":40},"action":"insert","lines":[","],"id":1184}],[{"start":{"row":27,"column":40},"end":{"row":27,"column":41},"action":"insert","lines":[" "],"id":1185}]]},"ace":{"folds":[],"scrolltop":4.5,"scrollleft":0,"selection":{"start":{"row":22,"column":14},"end":{"row":22,"column":14},"isBackwards":false},"options":{"guessTabSize":true,"useWrapMode":false,"wrapToView":true},"firstLineState":0},"timestamp":1451423742722,"hash":"b8091c4f33e42c4ba0bcc907d04324937dbb8819"} | ||
{"filter":false,"title":"index.js","tooltip":"/test/index.js","undoManager":{"mark":100,"position":100,"stack":[[{"start":{"row":67,"column":48},"end":{"row":67,"column":49},"action":"insert","lines":["t"],"id":1415}],[{"start":{"row":67,"column":49},"end":{"row":67,"column":50},"action":"insert","lines":["t"],"id":1416}],[{"start":{"row":67,"column":50},"end":{"row":67,"column":51},"action":"insert","lines":["e"],"id":1417}],[{"start":{"row":67,"column":51},"end":{"row":67,"column":52},"action":"insert","lines":["r"],"id":1418}],[{"start":{"row":67,"column":52},"end":{"row":67,"column":53},"action":"insert","lines":[","],"id":1419}],[{"start":{"row":67,"column":53},"end":{"row":67,"column":54},"action":"insert","lines":[" "],"id":1420}],[{"start":{"row":67,"column":54},"end":{"row":67,"column":55},"action":"insert","lines":["u"],"id":1421}],[{"start":{"row":67,"column":54},"end":{"row":67,"column":55},"action":"remove","lines":["u"],"id":1422}],[{"start":{"row":67,"column":54},"end":{"row":67,"column":55},"action":"insert","lines":["n"],"id":1423}],[{"start":{"row":67,"column":55},"end":{"row":67,"column":56},"action":"insert","lines":["u"],"id":1424}],[{"start":{"row":67,"column":56},"end":{"row":67,"column":57},"action":"insert","lines":["m"],"id":1425}],[{"start":{"row":67,"column":57},"end":{"row":67,"column":58},"action":"insert","lines":["b"],"id":1426}],[{"start":{"row":67,"column":58},"end":{"row":67,"column":59},"action":"insert","lines":["e"],"id":1427}],[{"start":{"row":67,"column":59},"end":{"row":67,"column":60},"action":"insert","lines":["r"],"id":1428}],[{"start":{"row":67,"column":60},"end":{"row":67,"column":61},"action":"insert","lines":[","],"id":1429}],[{"start":{"row":67,"column":61},"end":{"row":67,"column":62},"action":"insert","lines":[" "],"id":1430}],[{"start":{"row":67,"column":62},"end":{"row":67,"column":63},"action":"insert","lines":["c"],"id":1431}],[{"start":{"row":67,"column":63},"end":{"row":67,"column":64},"action":"insert","lines":["a"],"id":1432}],[{"start":{"row":67,"column":64},"end":{"row":67,"column":65},"action":"insert","lines":["l"],"id":1433}],[{"start":{"row":67,"column":65},"end":{"row":67,"column":66},"action":"insert","lines":["l"],"id":1434}],[{"start":{"row":67,"column":66},"end":{"row":67,"column":67},"action":"insert","lines":["b"],"id":1435}],[{"start":{"row":67,"column":67},"end":{"row":67,"column":68},"action":"insert","lines":["a"],"id":1436}],[{"start":{"row":67,"column":68},"end":{"row":67,"column":69},"action":"insert","lines":["c"],"id":1437}],[{"start":{"row":67,"column":69},"end":{"row":67,"column":70},"action":"insert","lines":["k"],"id":1438}],[{"start":{"row":69,"column":33},"end":{"row":70,"column":0},"action":"insert","lines":["",""],"id":1439},{"start":{"row":70,"column":0},"end":{"row":70,"column":8},"action":"insert","lines":[" "]}],[{"start":{"row":70,"column":8},"end":{"row":70,"column":9},"action":"insert","lines":["c"],"id":1440}],[{"start":{"row":70,"column":9},"end":{"row":70,"column":10},"action":"insert","lines":["a"],"id":1441}],[{"start":{"row":70,"column":10},"end":{"row":70,"column":11},"action":"insert","lines":["l"],"id":1442}],[{"start":{"row":70,"column":11},"end":{"row":70,"column":12},"action":"insert","lines":["l"],"id":1443}],[{"start":{"row":70,"column":12},"end":{"row":70,"column":13},"action":"insert","lines":["b"],"id":1444}],[{"start":{"row":70,"column":13},"end":{"row":70,"column":14},"action":"insert","lines":["a"],"id":1445}],[{"start":{"row":70,"column":14},"end":{"row":70,"column":15},"action":"insert","lines":["c"],"id":1446}],[{"start":{"row":70,"column":15},"end":{"row":70,"column":16},"action":"insert","lines":["k"],"id":1447}],[{"start":{"row":70,"column":16},"end":{"row":70,"column":18},"action":"insert","lines":["()"],"id":1448}],[{"start":{"row":70,"column":18},"end":{"row":70,"column":19},"action":"insert","lines":[";"],"id":1449}],[{"start":{"row":68,"column":16},"end":{"row":68,"column":28},"action":"remove","lines":["arguments[0]"],"id":1450}],[{"start":{"row":68,"column":16},"end":{"row":68,"column":17},"action":"insert","lines":["l"],"id":1451}],[{"start":{"row":68,"column":17},"end":{"row":68,"column":18},"action":"insert","lines":["e"],"id":1452}],[{"start":{"row":68,"column":18},"end":{"row":68,"column":19},"action":"insert","lines":["t"],"id":1453}],[{"start":{"row":68,"column":19},"end":{"row":68,"column":20},"action":"insert","lines":["t"],"id":1454}],[{"start":{"row":68,"column":20},"end":{"row":68,"column":21},"action":"insert","lines":["e"],"id":1455}],[{"start":{"row":68,"column":21},"end":{"row":68,"column":22},"action":"insert","lines":["r"],"id":1456}],[{"start":{"row":69,"column":16},"end":{"row":69,"column":28},"action":"remove","lines":["arguments[1]"],"id":1457}],[{"start":{"row":69,"column":16},"end":{"row":69,"column":17},"action":"insert","lines":["n"],"id":1458}],[{"start":{"row":69,"column":17},"end":{"row":69,"column":18},"action":"insert","lines":["u"],"id":1459}],[{"start":{"row":69,"column":18},"end":{"row":69,"column":19},"action":"insert","lines":["m"],"id":1460}],[{"start":{"row":69,"column":19},"end":{"row":69,"column":20},"action":"insert","lines":["b"],"id":1461}],[{"start":{"row":69,"column":20},"end":{"row":69,"column":21},"action":"insert","lines":["e"],"id":1462}],[{"start":{"row":69,"column":21},"end":{"row":69,"column":22},"action":"insert","lines":["r"],"id":1463}],[{"start":{"row":67,"column":73},"end":{"row":68,"column":0},"action":"insert","lines":["",""],"id":1464},{"start":{"row":68,"column":0},"end":{"row":68,"column":8},"action":"insert","lines":[" "]}],[{"start":{"row":68,"column":8},"end":{"row":68,"column":9},"action":"insert","lines":["c"],"id":1465}],[{"start":{"row":68,"column":9},"end":{"row":68,"column":10},"action":"insert","lines":["o"],"id":1466}],[{"start":{"row":68,"column":10},"end":{"row":68,"column":11},"action":"insert","lines":["n"],"id":1467}],[{"start":{"row":68,"column":11},"end":{"row":68,"column":12},"action":"insert","lines":["s"],"id":1468}],[{"start":{"row":68,"column":12},"end":{"row":68,"column":13},"action":"insert","lines":["o"],"id":1469}],[{"start":{"row":68,"column":13},"end":{"row":68,"column":14},"action":"insert","lines":["l"],"id":1470}],[{"start":{"row":68,"column":14},"end":{"row":68,"column":15},"action":"insert","lines":["e"],"id":1471}],[{"start":{"row":68,"column":15},"end":{"row":68,"column":16},"action":"insert","lines":["."],"id":1472}],[{"start":{"row":68,"column":16},"end":{"row":68,"column":17},"action":"insert","lines":["l"],"id":1473}],[{"start":{"row":68,"column":17},"end":{"row":68,"column":18},"action":"insert","lines":["o"],"id":1474}],[{"start":{"row":68,"column":18},"end":{"row":68,"column":19},"action":"insert","lines":["g"],"id":1475}],[{"start":{"row":68,"column":19},"end":{"row":68,"column":21},"action":"insert","lines":["()"],"id":1476}],[{"start":{"row":68,"column":20},"end":{"row":68,"column":22},"action":"insert","lines":["\"\""],"id":1477}],[{"start":{"row":68,"column":21},"end":{"row":68,"column":22},"action":"insert","lines":["A"],"id":1478}],[{"start":{"row":68,"column":22},"end":{"row":68,"column":23},"action":"insert","lines":["r"],"id":1479}],[{"start":{"row":68,"column":23},"end":{"row":68,"column":24},"action":"insert","lines":["g"],"id":1480}],[{"start":{"row":68,"column":24},"end":{"row":68,"column":25},"action":"insert","lines":["s"],"id":1481}],[{"start":{"row":68,"column":25},"end":{"row":68,"column":26},"action":"insert","lines":[" "],"id":1482}],[{"start":{"row":68,"column":26},"end":{"row":68,"column":27},"action":"insert","lines":["i"],"id":1483}],[{"start":{"row":68,"column":27},"end":{"row":68,"column":28},"action":"insert","lines":["s"],"id":1484}],[{"start":{"row":68,"column":28},"end":{"row":68,"column":29},"action":"insert","lines":[":"],"id":1485}],[{"start":{"row":68,"column":29},"end":{"row":68,"column":30},"action":"insert","lines":[" "],"id":1486}],[{"start":{"row":68,"column":31},"end":{"row":68,"column":32},"action":"insert","lines":[","],"id":1487}],[{"start":{"row":68,"column":32},"end":{"row":68,"column":33},"action":"insert","lines":[" "],"id":1488}],[{"start":{"row":68,"column":33},"end":{"row":68,"column":34},"action":"insert","lines":["a"],"id":1489}],[{"start":{"row":68,"column":34},"end":{"row":68,"column":35},"action":"insert","lines":["r"],"id":1490}],[{"start":{"row":68,"column":35},"end":{"row":68,"column":36},"action":"insert","lines":["g"],"id":1491}],[{"start":{"row":68,"column":36},"end":{"row":68,"column":37},"action":"insert","lines":["u"],"id":1492}],[{"start":{"row":68,"column":37},"end":{"row":68,"column":38},"action":"insert","lines":["m"],"id":1493}],[{"start":{"row":68,"column":38},"end":{"row":68,"column":39},"action":"insert","lines":["e"],"id":1494}],[{"start":{"row":68,"column":39},"end":{"row":68,"column":40},"action":"insert","lines":["n"],"id":1495}],[{"start":{"row":68,"column":40},"end":{"row":68,"column":41},"action":"insert","lines":["t"],"id":1496}],[{"start":{"row":68,"column":41},"end":{"row":68,"column":42},"action":"insert","lines":["s"],"id":1497}],[{"start":{"row":68,"column":43},"end":{"row":68,"column":44},"action":"insert","lines":[";"],"id":1498}],[{"start":{"row":67,"column":31},"end":{"row":67,"column":32},"action":"insert","lines":["{"],"id":1499}],[{"start":{"row":67,"column":32},"end":{"row":67,"column":33},"action":"insert","lines":["a"],"id":1500}],[{"start":{"row":67,"column":33},"end":{"row":67,"column":34},"action":"insert","lines":["s"],"id":1501}],[{"start":{"row":67,"column":34},"end":{"row":67,"column":35},"action":"insert","lines":["u"],"id":1502}],[{"start":{"row":67,"column":34},"end":{"row":67,"column":35},"action":"remove","lines":["u"],"id":1503}],[{"start":{"row":67,"column":34},"end":{"row":67,"column":35},"action":"insert","lines":["y"],"id":1504}],[{"start":{"row":67,"column":35},"end":{"row":67,"column":36},"action":"insert","lines":["n"],"id":1505}],[{"start":{"row":67,"column":36},"end":{"row":67,"column":37},"action":"insert","lines":["c"],"id":1506}],[{"start":{"row":67,"column":37},"end":{"row":67,"column":38},"action":"insert","lines":[":"],"id":1507}],[{"start":{"row":67,"column":38},"end":{"row":67,"column":39},"action":"insert","lines":[" "],"id":1508}],[{"start":{"row":67,"column":39},"end":{"row":67,"column":40},"action":"insert","lines":["t"],"id":1509}],[{"start":{"row":67,"column":40},"end":{"row":67,"column":41},"action":"insert","lines":["r"],"id":1510}],[{"start":{"row":67,"column":41},"end":{"row":67,"column":42},"action":"insert","lines":["u"],"id":1511}],[{"start":{"row":67,"column":42},"end":{"row":67,"column":43},"action":"insert","lines":["e"],"id":1512}],[{"start":{"row":67,"column":43},"end":{"row":67,"column":44},"action":"insert","lines":["}"],"id":1513}],[{"start":{"row":67,"column":44},"end":{"row":67,"column":45},"action":"insert","lines":[","],"id":1514}],[{"start":{"row":67,"column":45},"end":{"row":67,"column":46},"action":"insert","lines":[" "],"id":1515}]]},"ace":{"folds":[],"scrolltop":265,"scrollleft":0,"selection":{"start":{"row":63,"column":29},"end":{"row":63,"column":29},"isBackwards":false},"options":{"guessTabSize":true,"useWrapMode":false,"wrapToView":true},"firstLineState":{"row":15,"state":"start","mode":"ace/mode/javascript"}},"timestamp":1451492968456,"hash":"d1cb7da5ac2ee413f2bc4fe06ad8bae90064249e"} |
var beforefn = require("beforefn"); | ||
function beforeCallback(fn, beforeCbFn) { | ||
function beforeCallback(options, fn, beforeCbFn) { | ||
if (arguments.length == 2) return beforeCallback({}, options, fn); | ||
var wrappedFunction = function() { | ||
@@ -13,4 +15,22 @@ var args = Array.prototype.slice.call(arguments); | ||
if (options.allArgs) { | ||
beforeCbFn = beforeCbFn.bind(this, args); | ||
} | ||
var originalCallback = args[cbNum]; | ||
if (cbNum !== null) { | ||
args[cbNum] = beforefn(args[cbNum], beforeCbFn); | ||
if (options.async) { | ||
args[cbNum] = function() { | ||
var cbArgs = Array.prototype.slice.call(arguments); | ||
var context = this; | ||
// Add done callback | ||
var beforeCbFnArgs = cbArgs.concat([function() { | ||
originalCallback.apply(context, cbArgs); | ||
}]); | ||
beforeCbFn.apply(context, beforeCbFnArgs); | ||
} | ||
} else { | ||
args[cbNum] = beforefn(args[cbNum], beforeCbFn); | ||
} | ||
} | ||
@@ -17,0 +37,0 @@ fn.apply(this, args); |
{ | ||
"name": "beforecb", | ||
"version": "0.0.1", | ||
"version": "0.1.0", | ||
"description": "Wrap a function to call a function before its callback is called", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -12,7 +12,23 @@ # beforecb | ||
## Facts | ||
```js | ||
var beforecb = require("beforecb"); | ||
var wrapped = beforecb(options, function original, function beforeCbFunction); | ||
``` | ||
Arguments: | ||
- `options` - *Optional* - An object with any of the following options: | ||
- async - the last argument to beforeCbFunction will be a callback and your original callback will only be called once this is called | ||
- allArgs - arguments to the original function are passed as an array to the first argument of beforeCbFunction | ||
- `original` - The function you want to wrap. | ||
- `beforeCbFunction` - A function to call just before the wrapped functions callback. | ||
## API Info | ||
- beforecb returns a new function | ||
- You can pass multiple arguments to it, the last function will be presumed to be the callback. | ||
- All arguments to the callback will be passed to beforecb function. | ||
- All arguments to the callback will be passed to the beforecb function. | ||
- By default the original callback is called after beforeCbFunction has returned (If `options.async` is not set) | ||
- When in async mode all arguments to your callback are passed to beforeCbFunction and the `done` function will be the last argument. | ||
@@ -19,0 +35,0 @@ ## Examples |
@@ -22,3 +22,3 @@ "use strict" | ||
var called = 0; | ||
var func = function(number, letter, func, cb) { | ||
var func = function(letter, number, func, cb) { | ||
cb(); | ||
@@ -29,3 +29,3 @@ }; | ||
}); | ||
wrappedFunc(1, "two", function() {}, function() { | ||
wrappedFunc("a", 1, function() {}, function() { | ||
t.equal(called, 1); | ||
@@ -36,2 +36,17 @@ t.end(); | ||
test("works in async mode", function(t) { | ||
var called = 0; | ||
var func = function(cb) { | ||
cb(); | ||
}; | ||
var wrappedFunc = beforecb({async: true}, func, function (done) { | ||
called++; | ||
return done(); | ||
}); | ||
wrappedFunc(function() { | ||
t.equal(called, 1); | ||
t.end(); | ||
}); | ||
}); | ||
test("before is passed args that were passed to callback", function (t) { | ||
@@ -52,6 +67,42 @@ var func = function(cb) { | ||
test("when in async mode before is passed args that were passed to callback", function (t) { | ||
var func = function(cb) { | ||
cb("a", 1); | ||
}; | ||
var wrappedFunc = beforecb({async: true}, func, function(letter, number, callback) { | ||
console.log("Args is: ", arguments); | ||
t.equal(letter, "a"); | ||
t.equal(number, 1); | ||
callback(); | ||
}); | ||
wrappedFunc(function() { | ||
t.equal(arguments[0], "a"); | ||
t.equal(arguments[1], 1); | ||
t.end(); | ||
}); | ||
}); | ||
test("before is passed args that were passed to original function if allArgs is true", function (t) { | ||
var func = function(one, two, cb) { | ||
t.equal(one, "b") | ||
t.equal(two, 2) | ||
cb("a", 1); | ||
}; | ||
var wrappedFunc = beforecb({allArgs: true}, func, function() { | ||
t.equal(arguments[0][0], "b"); | ||
t.equal(arguments[0][1], 2); | ||
t.equal(arguments[1], "a"); | ||
t.equal(arguments[2], 1); | ||
}); | ||
wrappedFunc("b", 2, function() { | ||
t.equal(arguments[0], "a"); | ||
t.equal(arguments[1], 1); | ||
t.end(); | ||
}); | ||
}); | ||
test("original function is still passed arguments", function (t) { | ||
t.plan(2); | ||
var func = function(one, two, cb) { | ||
t.equal(one, "a") | ||
t.equal(one, "b") | ||
t.equal(two, 2) | ||
@@ -61,5 +112,5 @@ cb(); | ||
var wrappedFunc = beforecb(func, function() {}); | ||
wrappedFunc("a", 2, function() { | ||
wrappedFunc("b", 2, function() { | ||
t.end(); | ||
}); | ||
}); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
68219
20
154
64
1