Code style and refactor for reducing duplicate code.

This commit is contained in:
David Molineus
2015-01-08 17:28:29 +01:00
parent ff231c7fa0
commit 5a39a737d7

View File

@@ -49,10 +49,8 @@ class AbstractVectorMapper extends AbstractTypeMapper
) {
parent::build($definition, $model, $builder, $bounds);
if ($definition instanceof Path) {
if ($model->addPopup) {
$definition->bindPopup($model->popupContent);
}
if ($model->addPopup) {
$definition->bindPopup($model->popupContent);
}
}
}