Ticket #1931 (closed feature: fixed)

Opened 4 years ago

Last modified 4 years ago

geometry.resize could return obj for chaining

Reported by: crschmidt Owned by:
Priority: minor Milestone: 2.8 Release
Component: general Version: 2.7
Keywords: Cc:
State: Complete

Description

16:57:19 < tschaub> bounds.toGeometry().resize(1.1, new OpenLayers.Geometry.Point(bounds.minx, bounds.miny).toBounds()
16:57:30 < tschaub> with appropriate parens of course
17:03:35 < tschaub> ah, project10 - unfortunately, the fifth bug with the line above is that resize doesn't return anything

Attachments

resize.patch Download (2.3 KB) - added by crschmidt 4 years ago.
resize.2.patch Download (4.0 KB) - added by tschaub 4 years ago.
return geom

Change History

Changed 4 years ago by crschmidt

Changed 4 years ago by crschmidt

  • state set to Review

Changed 4 years ago by tschaub

return geom

Changed 4 years ago by tschaub

  • state changed from Review to Commit

Looks good to me. Some tests for good measure. Please commit.

Changed 4 years ago by crschmidt

  • status changed from new to closed
  • state changed from Commit to Complete
  • resolution set to fixed

(In [8840]) geometry.resize returns obj for chaining. r=tschaub, (Closes #1931)

Note: See TracTickets for help on using tickets.