mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-10 10:42:19 +00:00
Declared some functions when compiling in rhino
This commit is contained in:
1 parent
2952812a4b
commit
28a135880d
1 file changed
+5
@@ -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
|
||||
*/
|
||||
Reference in new issue
Block a user