From 28a135880d0f7785e4ddb95a6bdb0ef98aa07b31 Mon Sep 17 00:00:00 2001 From: Martin Carlberg Date: Tue, 22 Jan 2013 10:33:36 +0100 Subject: [PATCH] Declared some functions when compiling in rhino --- AppKit/CoreGraphics/CGContext.j | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AppKit/CoreGraphics/CGContext.j b/AppKit/CoreGraphics/CGContext.j index 883ef2241..e749a75ce 100644 --- a/AppKit/CoreGraphics/CGContext.j +++ b/AppKit/CoreGraphics/CGContext.j @@ -711,6 +711,11 @@ else if (CPFeatureIsCompatible(CPVMLFeature)) { #include "CGContextVML.j" } +else +{ + // I have declared these functions here to make it compile without warnings with the new compiler under rhino. + CGContextClearRect = CGContextDrawLinearGradient = CGContextClip = CGContextClipToRect = function() {throw new Error("function is not declared in this environment")} +} /*! @endcond */