Skip to content

Conversation

stuporglue
Copy link
Contributor

Replacement pull request for #1627.

  • Fixed white space
  • Own branch
  • jake test passes

Not sure how to verify that it will pass in Travis, but the "whitespace after :" issue is fixed. Sorry about the bad pull request before.

This pull request allows
new L.DivIcon({className:'numbericon',html:0});
to create an icon with a '0' in the label.

Icons created with an html value of 0 ended up with an empty string for html instead of a 0 since options.html evaluated to false.

This sets a default value of false, and checks if options.html !== false.

@mourner
Copy link
Member

mourner commented Apr 29, 2013

Looks good!

mourner added a commit that referenced this pull request Apr 29, 2013
Allow value of 0 in L.DivIcon's html parameter
@mourner mourner merged commit 4224b9a into Leaflet:master Apr 29, 2013
@mourner
Copy link
Member

mourner commented Apr 29, 2013

Thanks :)

@stuporglue stuporglue deleted the divicon_0 branch April 29, 2013 14:44
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