Hey guys,

I've done a d&d script.
But if the interval is going since a few minutes, the d&d is lagging.
So I made a function which should clear the interval, but it is not working.
Here is the code:
Code:
var qwindow = function() {
...
                this.interval;
...
                this.move = function(e, target) {
...
                            this.interval = window.setInterval( function() {
...
                            }, 50);
                }
                this.stop = function() {
                    window.clearInterval(interval);
                } 
                this.start = function(e, target) {
...
                }
                this.remove = function() {
...
                }
            }
                this.stop = function() {
                    window.clearInterval(this.interval);
                } 
}
mfg, deSpeach