app/js/patchwork/core/Patch.js
/**
         * Add necessary listeners to subpatch.
         * @param module
         */
Add necessary listeners to subpatch.
@param module
Add necessary listeners to subpatch . @param module
addEventListenersToSubPatch(subPatch) {
            subPatch.addEventListener(PatchEvent_1.default.MODULE_ADDED, this.subPatchEventHandler);
            subPatch.addEventListener(PatchEvent_1.default.MODULE_REMOVED, this.subPatchEventHandler);
            subPatch.addEventListener(PatchEvent_1.default.CONNECTION_ADDED, this.subPatchEventHandler);
            subPatch.addEventListener(PatchEvent_1.default.CONNECTION_PRE_REMOVE, this.subPatchEventHandler);
            subPatch.addEventListener(PatchEvent_1.default.CONNECTION_POST_REMOVE, this.subPatchEventHandler);
            subPatch.addEventListener(PatchEvent_1.default.PATCH_CLEARED, this.subPatchEventHandler);
            subPatch.addEventListener(PatchEvent_1.default.MODULE_ATTRIBUTE_CHANGED, this.subPatchEventHandler);
        }
addEventListenersToSubPatch ( subPatch ) { subPatch . addEventListener ( PatchEvent_1 . default . MODULE_ADDED , this . subPatchEventHandler ) ; subPatch . addEventListener ( PatchEvent_1 . default . MODULE_REMOVED , this . subPatchEventHandler ) ; subPatch . addEventListener ( PatchEvent_1 . default . CONNECTION_ADDED , this . subPatchEventHandler ) ; subPatch . addEventListener ( PatchEvent_1 . default . CONNECTION_PRE_REMOVE , this . subPatchEventHandler ) ; subPatch . addEventListener ( PatchEvent_1 . default . CONNECTION_POST_REMOVE , this . subPatchEventHandler ) ; subPatch . addEventListener ( PatchEvent_1 . default . PATCH_CLEARED , this . subPatchEventHandler ) ; subPatch . addEventListener ( PatchEvent_1 . default . MODULE_ATTRIBUTE_CHANGED , this . subPatchEventHandler ) ; }
Add necessary listeners to subpatch.
Add necessary listeners to subpatch .