From 06a72388b2553a237169bb4224fc671d33d90e15 Mon Sep 17 00:00:00 2001 From: Gokhan Songul Date: Wed, 1 Jul 2015 15:57:05 +0300 Subject: [PATCH] FileTree: ModalViewStack: modalview and modalviewstack causes circular dependency so delete the instanceof check from modalviewstack.coffee file to fix instanceof check error. --- src/components/modals/modalviewstack.coffee | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/components/modals/modalviewstack.coffee b/src/components/modals/modalviewstack.coffee index 3a83ba06..8b1219f5 100644 --- a/src/components/modals/modalviewstack.coffee +++ b/src/components/modals/modalviewstack.coffee @@ -10,9 +10,6 @@ module.exports = class KDModalViewStack extends KDObject addModal: (modal)-> - unless modal instanceof KDModalView - return warn "You can only add KDModalView instances to the modal stack." - modal.on "KDObjectWillBeDestroyed", => @next() {lastToFirst} = @getOptions()