jQuery calls it "extend". We could rename it Dygraph.extend if you prefer,
though maybe not in this change.


On Mon, Jul 22, 2013 at 4:28 PM, Robert Konigsberg <notifications@github.com
> wrote:

> In extras/circles.js:
>
> > + * TODO(danvk): be more specific on the return type.
> > + * @param {number} sides
> > + * @param {number=} rotationRadians
> > + * @param {number=} delta
> > + * @return {Function}
> > + * @private
> > + */
> > +var shapeFunction = function(sides, rotationRadians, delta) {
> > +  return function(g, name, ctx, cx, cy, color, radius) {
> > +    ctx.strokeStyle = color;
> > +    ctx.fillStyle = "white";
> > +    regularShape(ctx, sides, radius, cx, cy, rotationRadians, delta);
> > +  };
> > +};
> > +
> > +Dygraph.update(Dygraph.Circles, {
>
> OK with me. I guess "update" as a function on Dygraph makes me think it
> has to do with updateOptions, and not a general purpose attribute copier.
> Kind of freaking me out.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/danvk/dygraphs/pull/263/files#r5329657>
> .
>