NEW: CPCompatibility add a function to set a feature externally.

CPSetPlatformFeature(aFeature, aBool)
This commit is contained in:
cacaodev committed 2017-03-01 19:10:00 +01:00
1 parent 5c71612e34
commit facc748090
1 file changed
+8
+8
View File
@@ -335,6 +335,14 @@ else
CPRedoKeyEquivalentModifierMask = CPControlKeyMask;
}
/*!
Sets a feature with the given value.
*/
function CPSetPlatformFeature(aFeature, aBool)
{
PLATFORM_FEATURES[aFeature] = aBool;
}
/*!
Return the properly prefixed JS property for the given name. E.g. in a webkit browser,
CPBrowserStyleProperty('transition') -> WebkitTransition