Merge branch 'master' of github.com:jonobr1/gui-dat

This commit is contained in:
George Michael Brower 2011-01-31 19:51:22 -05:00
commit e79720794f

8
gui.js
View File

@ -218,7 +218,13 @@ var GUI = function() {
}; };
this.unlistenTo = function(controller) { this.unlistenTo = function(controller) {
// TODO // TODO: test this
for(var i = 0; i < listening.length; i++) {
if(listening[i] == controller) listening.splice(i, 1);
}
if(listening.length <= 0) {
clearInterval(listenInterval);
}
}; };
this.listen = function(whoToListenTo) { this.listen = function(whoToListenTo) {