From 3af178cf5fe0dcd26b80d7e9bbfa19e53333418f Mon Sep 17 00:00:00 2001 From: Reclaimer Date: Tue, 13 Dec 2016 11:40:48 +0100 Subject: [PATCH] Add var statement to IntermediateInheritor Without "var" it throws an error "Uncaught ReferenceError: IntermediateInheritor is not defined" in ionic2 RC1 --- webcam.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webcam.js b/webcam.js index d941ea0..d52e6eb 100644 --- a/webcam.js +++ b/webcam.js @@ -27,7 +27,7 @@ function WebcamError() { this.message = temp.message; } -IntermediateInheritor = function() {}; +var IntermediateInheritor = function() {}; IntermediateInheritor.prototype = Error.prototype; FlashError.prototype = new IntermediateInheritor();