mananger: local var in for loop (otherwise breaks stuffs sometimes)
This commit is contained in:
parent
9b5372255b
commit
d3b2264280
1 changed files with 1 additions and 1 deletions
|
|
@ -128,7 +128,7 @@ WidgetManager.prototype.getWidgetBy = function(key, dict) {
|
|||
var widgets = [],
|
||||
hash, w
|
||||
|
||||
for (i = dict[key] ? dict[key].length-1 : -1; i>=0; i--) {
|
||||
for (var i = dict[key] ? dict[key].length-1 : -1; i>=0; i--) {
|
||||
hash = dict[key][i]
|
||||
w = this.widgets[hash]
|
||||
if (!w) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue