Merge pull request #2533 from cacaodev/CPCompatibility-SetFeature

NEW: CPCompatibility: add a function to set a feature externally.
```CPSetPlatformFeature(aFeature, aBool)```
This commit is contained in:
cacaodev authored and GitHub committed 2017-03-13 08:28:51 +01:00
commit 3f64b74453
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