dispose: function() {
var disposer;
while (disposer = this._disposers.shift()) { // expected a conditional expression and instead saw an assignment.
disposer();
}
},
jshint isn’t happy that disposer is assigned in the while loop.
is there any way to maintain this logic and make it jshint friendly?
Unless I missed something…
You may also want to buff up your conditional:
Working example: http://jsfiddle.net/DPNYq/