{"head":"f98effb48671c6cf99b19ae06e4e2f6e55517b16","size":1,"push_id":45044992,"shas":[["f98effb48671c6cf99b19ae06e4e2f6e55517b16","de355f63fe541deedf26e96ee58df1c87f78c234@gmail.com","Change API to allow more flexibility/sanity\n\nDon't pass the callback directly into the soljering function.  Use the\nonComplete function to add callback functions.  If the function has\nalready completed the callback passed to onComplete will execute\nimmediately.\n\nMultiple callbacks example:\ns = new Soljering(url);\ns.('test', function() {\n\t// code\n});\ns.test()\n\t.onComplete(function() { alert('completed'); })\n\t.onComplete(function() { alert('ch-ch-chaining!'); })\n\nOr pass the function call around like a result even before the worker\nis done running it:\ns.('picFilter', function(imgData) {\n\t// INTENSE code\n});\n\nupdatePicUI(s.picFilter(i.getData()));\n\nfunction updatePicUI(pic) {\n\tpic.onComplete(function() {\n\t\t// Do some stuff\n\t});\n\t// *shrug*\n}\n\nGood times had by all.","Kwame Thomison"]],"ref":"refs/heads/master"}