site/app/examples/chaining-promises.js
function addGraphics(buffer) {
                layer.add(new Graphic({
                    geometry: meteorPoint,
                    symbol: pointSym
                }));
                layer.add(new Graphic({
                    geometry: buffer,
                    symbol: polySym
                }));

                return buffer;
            }
function addGraphics(buffer) {
                layer.add(new Graphic({
                    geometry: meteorPoint,
                    symbol: pointSym
                }));
                layer.add(new Graphic({
                    geometry: buffer,
                    symbol: polySym
                }));

                return buffer;
            }
function addGraphics ( buffer ) { layer . add ( new Graphic ( { geometry : meteorPoint , symbol : pointSym } ) ) ; layer . add ( new Graphic ( { geometry : buffer , symbol : polySym } ) ) ; return buffer ; }
adds the point and buffer graphics to the layer
adds the point and buffer graphics to the layer