Also added an identity check when compairing to the number 0.
This is mostly cosmetic follow-up to #361.
Relevant tests continue to pass in IE 6, FF 11 and the ancient Chrome 11.
Code style changes: Not too many var declarations,
line-length, and single return statement. Added identity
check when compairing to the number 0.
Incorporate review by @pagameba.
@pagameba, I incorporated your suggestions, tests continue to pass in Chromium 18.
Would you be so kind to have another look?
Merge branch 'master' of https://github.com/openlayers/openlayers int…
Merge branch 'centroid' of https://github.com/marcjansen/openlayers i…