Skip to content

Commit

Permalink
fix for in array
Browse files Browse the repository at this point in the history
  • Loading branch information
popomore committed Mar 7, 2014
1 parent 05c2ce2 commit 94a32d7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

---

## 1.3.1

`tag:fixed` 修复 for/in 数组的 bug

## 1.3.0

`tag:changed` 大范围的重构,很多细节有变化,可以按照新文档开发。
Expand Down
10 changes: 5 additions & 5 deletions src/autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ define(function(require, exports, module) {
},

parseElement: function() {
var t = ['header', 'footer', 'html'];
for (var i in t) {
this.templatePartials || (this.templatePartials = {});
this.templatePartials[t[i]] = this.get(t[i]);
}
var that = this;
this.templatePartials || (this.templatePartials = {});
$.each(['header', 'footer', 'html'], function( index, item ) {
that.templatePartials[item] = that.get(item);
});
AutoComplete.superclass.parseElement.call(this);
},

Expand Down

0 comments on commit 94a32d7

Please sign in to comment.