Update component's attributes based on the source code when it's saved