cocos2d/cocos2d-html5 — pull request #1746 by NatWeiss (2014-04-09 07:25:29+00:00)
Title: Fix getPosition() bug

At present, calling `getPosition()` on a node returns a reference to the node's private `_position` variable. This can lead to mysterious bugs in seemingly simple code. Consider this:

var pos = node.getPosition();
pos.x += 5; // bad! this modifies the node's position

This pull request fixes the bug.