![]() |
API
0.9.6
|
Go to the source code of this file.
Functions | |
| function | CPBrowserCSSProperty (aProperty) |
| function | CPBrowserIsEngine (anEngine) |
| function | CPBrowserIsOperatingSystem (anOperatingSystem) |
| function | CPBrowserStyleProperty (aProperty) |
| function | CPFeatureIsCompatible (aFeature) |
| function | CPPlatformHasBug (aBug) |
| if (typeof window!=="undefined"&&typeof window.navigator!=="undefined") USER_AGENT | |
| else | if (USER_AGENT.indexOf("AppleWebKit/")!=-1) |
| else | if (USER_AGENT.indexOf("KHTML")!=-1) |
| else | if (USER_AGENT.indexOf("Gecko")!==-1) |
| if (typeof document!="undefined") | |
| if (USER_AGENT.indexOf("Mac")!==-1) | |
| function CPBrowserCSSProperty | ( | aProperty | ) |
Definition at line 342 of file CPCompatibility.j.
| function CPBrowserIsEngine | ( | anEngine | ) |
Definition at line 238 of file CPCompatibility.j.
| function CPBrowserIsOperatingSystem | ( | anOperatingSystem | ) |
Definition at line 243 of file CPCompatibility.j.
| function CPBrowserStyleProperty | ( | aProperty | ) |
Return the properly prefixed JS property for the given name. E.g. in a webkit browser, CPBrowserStyleProperty('transition') -> WebkitTransition
While technically not a style property, style related event handler names are also supported. CPBrowserStyleProperty('transitionend') -> 'webkitTransitionEnd'
CSS is only available in platform(dom), so don't rely too heavily on it.
Definition at line 285 of file CPCompatibility.j.
| function CPFeatureIsCompatible | ( | aFeature | ) |
Definition at line 228 of file CPCompatibility.j.
| function CPPlatformHasBug | ( | aBug | ) |
Definition at line 233 of file CPCompatibility.j.
| else if | ( | typeof window! | = = "undefined" && typeof window.navigator !== "undefined" | ) |
Definition at line 96 of file CPCompatibility.j.
| else if | ( | USER_AGENT.indexOf("AppleWebKit/")! | = -1 | ) |
Definition at line 122 of file CPCompatibility.j.
| else if | ( | USER_AGENT.indexOf("KHTML")! | = -1 | ) |
Definition at line 168 of file CPCompatibility.j.
| else if | ( | USER_AGENT.indexOf("Gecko")! | = = -1 | ) |
Definition at line 174 of file CPCompatibility.j.
| if | ( | typeof document! | = "undefined" | ) |
Definition at line 194 of file CPCompatibility.j.
| if | ( | USER_AGENT.indexOf("Mac")! | = = -1 | ) |
Definition at line 250 of file CPCompatibility.j.
| CPCanvasParentDrawErrorsOnMovementBug = 1 << 0 |
Definition at line 79 of file CPCompatibility.j.
| CPCSSRGBAFeature = 1 << 5 |
Definition at line 39 of file CPCompatibility.j.
| CPGeckoBrowserEngine = 1 |
Definition at line 27 of file CPCompatibility.j.
| CPHTML5DragAndDropSourceYOffBy1 = 1 << 26 |
Definition at line 64 of file CPCompatibility.j.
| CPHTMLCanvasFeature = 1 << 6 |
Definition at line 41 of file CPCompatibility.j.
| CPHTMLContentEditableFeature = 1 << 7 |
Definition at line 42 of file CPCompatibility.j.
| CPHTMLDragAndDropFeature = 1 << 8 |
Definition at line 43 of file CPCompatibility.j.
| CPInput1PxLeftPadding = 1 << 29 |
Definition at line 72 of file CPCompatibility.j.
| CPInputOnInputEventFeature = 1 << 30 |
Definition at line 73 of file CPCompatibility.j.
| CPInputSetFontOutsideOfDOM = 1 << 28 |
Definition at line 69 of file CPCompatibility.j.
| CPInputTypeCanBeChangedFeature = 1 << 25 |
Definition at line 63 of file CPCompatibility.j.
| CPInternetExplorerBrowserEngine = 2 |
Definition at line 28 of file CPCompatibility.j.
| CPJavaScriptCanvasDrawFeature = 1 << 13 |
Definition at line 49 of file CPCompatibility.j.
| CPJavaScriptCanvasTransformFeature = 1 << 14 |
Definition at line 50 of file CPCompatibility.j.
| CPJavaScriptClipboardAccessFeature = 1 << 12 |
Definition at line 48 of file CPCompatibility.j.
| CPJavaScriptClipboardEventsFeature = 1 << 11 |
Definition at line 47 of file CPCompatibility.j.
| CPJavaScriptInnerTextFeature = 1 << 9 |
Definition at line 45 of file CPCompatibility.j.
| CPJavaScriptMouseWheelValues_8_15 = 1 << 23 |
Definition at line 58 of file CPCompatibility.j.
| CPJavaScriptNegativeMouseWheelValues = 1 << 22 |
Definition at line 57 of file CPCompatibility.j.
| CPJavaScriptRemedialKeySupport = 1 << 16 |
Definition at line 54 of file CPCompatibility.j.
| CPJavaScriptShadowFeature = 1 << 20 |
Definition at line 55 of file CPCompatibility.j.
| CPJavaScriptTextContentFeature = 1 << 10 |
Definition at line 46 of file CPCompatibility.j.
| CPKHTMLBrowserEngine = 3 |
Definition at line 29 of file CPCompatibility.j.
| CPMacOperatingSystem = 0 |
Definition at line 34 of file CPCompatibility.j.
| CPOpacityRequiresFilterFeature = 1 << 24 |
Definition at line 60 of file CPCompatibility.j.
| CPOperaBrowserEngine = 4 |
Definition at line 30 of file CPCompatibility.j.
| CPOtherOperatingSystem = 2 |
Definition at line 36 of file CPCompatibility.j.
| CPPlatformActionKeyMask = CPControlKeyMask |
Definition at line 267 of file CPCompatibility.j.
| CPRedoKeyEquivalent = @"y" |
Definition at line 270 of file CPCompatibility.j.
| CPRedoKeyEquivalentModifierMask = CPControlKeyMask |
Definition at line 273 of file CPCompatibility.j.
| CPSOPDisabledFromFileURLs = 1 << 27 |
Definition at line 66 of file CPCompatibility.j.
| CPUndoKeyEquivalent = @"z" |
Definition at line 269 of file CPCompatibility.j.
| CPUndoKeyEquivalentModifierMask = CPControlKeyMask |
Definition at line 272 of file CPCompatibility.j.
| CPUnknownBrowserEngine = 0 |
Definition at line 26 of file CPCompatibility.j.
| CPVMLFeature = 1 << 15 |
Definition at line 52 of file CPCompatibility.j.
| CPWebKitBrowserEngine = 5 |
Definition at line 31 of file CPCompatibility.j.
| CPWindowsOperatingSystem = 1 |
Definition at line 35 of file CPCompatibility.j.
| else |
Definition at line 263 of file CPCompatibility.j.
| OPERATING_SYSTEM = CPOtherOperatingSystem |
Definition at line 248 of file CPCompatibility.j.
| var PLATFORM_BUGS = 0 |
Definition at line 84 of file CPCompatibility.j.
| var PLATFORM_ENGINE = CPUnknownBrowserEngine |
Definition at line 82 of file CPCompatibility.j.
| PLATFORM_FEATURES = 0 |
Definition at line 83 of file CPCompatibility.j.
| var PLATFORM_STYLE_JS_PROPERTIES = {} |
Definition at line 85 of file CPCompatibility.j.
| var USER_AGENT = "" |
Definition at line 81 of file CPCompatibility.j.