Merge branch 'CPCompatibility-SetFeature' into CPWindowAnimator-copy

This commit is contained in:
cacaodev committed 2017-03-02 10:57:23 +01:00
commit 98105ad4dc
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