From 68b5d0a88315d95c8dc5ddb058041a5f9623b1c2 Mon Sep 17 00:00:00 2001 From: Alex Kit Date: Tue, 5 Sep 2017 15:40:08 +0200 Subject: [PATCH] fix (disposing) 'destroy'` is a static method It looks like a typo. Each component exports the `destroy` function as a static method, not the `instance` method. --- lib/ControlKit.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ControlKit.js b/lib/ControlKit.js index 0f030bd..b8f4d67 100644 --- a/lib/ControlKit.js +++ b/lib/ControlKit.js @@ -307,10 +307,10 @@ ControlKit.prototype.getNode = function () { }; ControlKit.destroy = function(){ - Mouse.get().destroy(); - Options.get().destroy(); - Picker.get().destroy(); + Mouse.destroy(); + Options.destroy(); + Picker.destroy(); initiated = false; }; -module.exports = ControlKit; \ No newline at end of file +module.exports = ControlKit;