cocos2d/cocos2d-x — pull request #4891 by minggo (2014-01-05 10:27:52+00:00)
Title: make TMXLayer::getProperties() return reference

`TMXMapInfo::startElement()` use the following codes

```cpp
TMXLayerInfo* layer = tmxMapInfo->getLayers().back();
Value value = attributeDict["value"];
std::string key = attributeDict["name"].asString();
// Add the property to the layer
layer->getProperties().insert(std::make_pair(key, value));
```

If `TMXLayer::getProperties()` returns an object, then it can not change the value of `TMXLayer::_properties`. I think it is reasonable to return reference of it, because it can speed up, and TMXLayer is used internally.