Declared some functions when compiling in rhino

This commit is contained in:
Martin Carlberg
2013-01-22 10:33:36 +01:00
parent 2952812a4b
commit 28a135880d
+5
View File
@@ -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
*/