diff --git a/apps/presentationeditor/main/app/controller/Animation.js b/apps/presentationeditor/main/app/controller/Animation.js index f653b31f4..bf70728f0 100644 --- a/apps/presentationeditor/main/app/controller/Animation.js +++ b/apps/presentationeditor/main/app/controller/Animation.js @@ -410,7 +410,7 @@ define([ } else { // add custom effect to appropriate group if (group) { var items = store.where({group: group.get('id')}); - var index = (items && items.length>0) ? store.indexOf(items.at(items.length-1)) : store.length-1; + var index = (items && items.length>0) ? store.indexOf(items[items.length-1]) : store.length-1; var rec = _.findWhere(Common.define.effectData.getEffectFullData(), {group: group.get('id'), value: this._state.Effect}); item = store.add(new Common.UI.DataViewModel({ group: group.get('id'),