Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix closure bugs in Dygraphs #237

Merged
merged 9 commits into from
Apr 18, 2013
Merged

Fix closure bugs in Dygraphs #237

merged 9 commits into from
Apr 18, 2013

Conversation

kberg
Copy link
Collaborator

@kberg kberg commented Mar 29, 2013

No description provided.

* Returns the box which the chart should be drawn in. This is the canvas's
* box, less space needed for the axis and chart labels.
*
* @return {{ x : numer, y : number, w : number, h : number }}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

numer -> number

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't seen this much whitespace in other closure type definitions. This is typically written as:

  • @return {{x: number, y: number, w: number, h: number}}

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done, and done.

@danvk
Copy link
Owner

danvk commented Apr 6, 2013

Have you run this through the closure compiler? I'm not sure there's much value in closure-izing unless you can get the code through the compiler.

@danvk
Copy link
Owner

danvk commented Apr 6, 2013

It seems like there's some overlap here with pull request 233. Which should I pull?

@kberg
Copy link
Collaborator Author

kberg commented Apr 11, 2013

Take 233 and I'll go from there.

@danvk
Copy link
Owner

danvk commented Apr 11, 2013

Done.

On Thu, Apr 11, 2013 at 7:47 AM, Robert Konigsberg <[email protected]

wrote:

Take 233 and I'll go from there.


Reply to this email directly or view it on GitHubhttps://github.com//pull/237#issuecomment-16229725
.

*
* This function can only be called if DygraphLayout's points array has been
* updated with canvas{x,y} attributes, i.e. by
* DygraphCanvasRenderer._updatePoints.
*
* @param {string=} opt_seriesName when specified, only that series will
* be drawn. (This is used for expedited redrawing with highlightSeriesOpts)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we typically indent continuation lines four spaces when they're part of jsdoc comments

@danvk
Copy link
Owner

danvk commented Apr 17, 2013

Look good, feel free to pull after addressing the comments I gave you.

@kberg
Copy link
Collaborator Author

kberg commented Apr 18, 2013

Done. Merging.

kberg added a commit that referenced this pull request Apr 18, 2013
Fix closure bugs in Dygraphs
@kberg kberg merged commit a56954f into danvk:master Apr 18, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants