dispose: function() {
var disposer;
while (disposer = this._disposers.shift()) { // expected a conditional expression and instead saw an assignment.
disposer();
}
},
jshint
不高兴在循环disposer
中分配。while
有什么方法可以保持这种逻辑并使其jshint
友好吗?