From 9e2c58873412654c3a518647cce4f9747df7d683 Mon Sep 17 00:00:00 2001 From: smaren Date: Thu, 8 May 2014 11:19:05 +0200 Subject: [PATCH] fixed skeletons setAttachment using getAttachment getAttachment does not exist, now uses getAttachmentBySlotIndex --- spine-js/spine.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-js/spine.js b/spine-js/spine.js index 4330330fb..5c8fd5307 100644 --- a/spine-js/spine.js +++ b/spine-js/spine.js @@ -776,7 +776,7 @@ spine.Skeleton.prototype = { if (slot.data.name == slotName) { var attachment = null; if (attachmentName) { - attachment = this.getAttachment(i, attachmentName); + attachment = this.getAttachmentBySlotIndex(i, attachmentName); if (!attachment) throw "Attachment not found: " + attachmentName + ", for slot: " + slotName; } slot.setAttachment(attachment);