Merge pull request from fsih/renameGetCostume

Rename getCostumeSvg to getCostume
This commit is contained in:
DD Liu 2018-04-26 13:51:31 -04:00 committed by GitHub
commit 5f20609dc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -545,7 +545,7 @@ class VirtualMachine extends EventEmitter {
* @param {int} costumeIndex - the index of the costume to be got.
* @return {string} the costume's SVG string, or null if it's not an SVG costume.
*/
getCostumeSvg (costumeIndex) {
getCostume (costumeIndex) {
const id = this.editingTarget.getCostumes()[costumeIndex].assetId;
if (id && this.runtime && this.runtime.storage &&
this.runtime.storage.get(id).dataFormat === 'svg') {