Shortened some of the attribute setting code
Shortened some of the attribute setting code

trentmillar/ddp-level-editor,trentmillar/ddp-level-editor,ryanramage/svg-editor,trentmillar/ddp-level-editor,ryanramage/svg-editor,ryanramage/svg-editor