Skip to content

Instantly share code, notes, and snippets.

@ssgonchar
ssgonchar / app.html
Created January 27, 2016 07:58 — forked from addyosmani/app.html
App
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Backbone.js • TodoMVC</title>
<link rel="stylesheet" href="../../assets/base.css">
<!--[if IE]>
<script src="../../assets/ie.js"></script>
<![endif]-->
// one: passes up the error from two()
function one(cb){
two(function(err, data){
if(err) return cb('one ' + err);
return cb(null, data);
});
}
// two: passes up the error from three()
function two(cb){