|
7 | 7 | import 'vs/css!./builder'; |
8 | 8 | import {TPromise} from 'vs/base/common/winjs.base'; |
9 | 9 | import types = require('vs/base/common/types'); |
10 | | -import {IDisposable, disposeAll} from 'vs/base/common/lifecycle'; |
| 10 | +import {IDisposable, dispose} from 'vs/base/common/lifecycle'; |
11 | 11 | import strings = require('vs/base/common/strings'); |
12 | 12 | import assert = require('vs/base/common/assert'); |
13 | 13 | import DOM = require('vs/base/browser/dom'); |
@@ -627,11 +627,11 @@ export class Builder implements IDisposable { |
627 | 627 | let type = arg1; |
628 | 628 | if (useCapture) { |
629 | 629 | if (this.captureToUnbind[type]) { |
630 | | - this.captureToUnbind[type] = disposeAll(this.captureToUnbind[type]); |
| 630 | + this.captureToUnbind[type] = dispose(this.captureToUnbind[type]); |
631 | 631 | } |
632 | 632 | } else { |
633 | 633 | if (this.toUnbind[type]) { |
634 | | - this.toUnbind[type] = disposeAll(this.toUnbind[type]); |
| 634 | + this.toUnbind[type] = dispose(this.toUnbind[type]); |
635 | 635 | } |
636 | 636 | } |
637 | 637 | } |
@@ -1769,13 +1769,13 @@ export class Builder implements IDisposable { |
1769 | 1769 |
|
1770 | 1770 | for (type in this.toUnbind) { |
1771 | 1771 | if (this.toUnbind.hasOwnProperty(type) && types.isArray(this.toUnbind[type])) { |
1772 | | - this.toUnbind[type] = disposeAll(this.toUnbind[type]); |
| 1772 | + this.toUnbind[type] = dispose(this.toUnbind[type]); |
1773 | 1773 | } |
1774 | 1774 | } |
1775 | 1775 |
|
1776 | 1776 | for (type in this.captureToUnbind) { |
1777 | 1777 | if (this.captureToUnbind.hasOwnProperty(type) && types.isArray(this.captureToUnbind[type])) { |
1778 | | - this.captureToUnbind[type] = disposeAll(this.captureToUnbind[type]); |
| 1778 | + this.captureToUnbind[type] = dispose(this.captureToUnbind[type]); |
1779 | 1779 | } |
1780 | 1780 | } |
1781 | 1781 |
|
|
0 commit comments