From 1f24fcb36400089a766deade68a1df92caa3e1a7 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Mon, 5 Sep 2016 23:09:33 +0100 Subject: [PATCH] Ensure errors thrown by RED.events handlers don't percolate up --- editor/js/events.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/editor/js/events.js b/editor/js/events.js index 804027af9..4ec77b19b 100644 --- a/editor/js/events.js +++ b/editor/js/events.js @@ -1,5 +1,5 @@ /** - * Copyright 2015 IBM Corp. + * Copyright 2015, 2016 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -35,7 +35,12 @@ function emit(evt,arg) { if (handlers[evt]) { for (var i=0;i