| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 
 | function transformationDecoration (callback, error, data){var transformedData = !error ? myDataTransformation(data) : data;
 callback(error, data);
 }
 
 function anotherTransformationDecoration (callback, error, data){
 var transformedData = !error ? anotherTransform(data) : data;
 callback(error, data);
 }
 
 function yetAnotherTransformationDecoration (callback, error, data){
 var transformedData = !error ? yetAnotherTransform(data) : data;
 callback(error, data);
 }
 
 function andYetAnotherTransformationDecoration (callback, error, data){
 var transformedData = !error ? andYetAnotherTransform(data) : data;
 callback(error, data);
 }
 
 function getSomeData (id, callback){
 
 var finalCallback = transformationDecoration.bind(callback);
 
 finalCallback = anotherTransformationDecoration.bind(finalCallback);
 finalCallback = yetAnotherTransformationDecoration.bind(finalCallback);
 finalCallback = andYetAnotherTransformationDecoration.bind(finalCallback);
 
 
 myDataServiceInstance.get(id, finalCallback);
 }
 
 |