-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Unbreak ReactKit | Nick Lockwood - Refactor | Nick Lockwood - [ReactNative] fix touch cancel behavior | Spencer Ahrens - [ReactNative iOS] Fix responder issue with textInput | Eric Vicenti - [ReactNative] README updates - file watching troubleshooting, one-time code drop -> currently private repo | Spencer Ahrens - [ReactKit] Re-add README linebreaks | Ben Alpert
- Loading branch information
Showing
55 changed files
with
1,515 additions
and
1,668 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
Libraries/vendor/react/vendor/core/ExecutionEnvironment.ios.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/** | ||
* Copyright 2013-2014 Facebook, Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* @providesModule ExecutionEnvironment | ||
* | ||
* Stubs SignedSource<<7afee88a05412d0c4eef54817419648e>> | ||
*/ | ||
|
||
/*jslint evil: true */ | ||
|
||
"use strict"; | ||
|
||
var canUseDOM = false; | ||
|
||
/** | ||
* Simple, lightweight module assisting with the detection and context of | ||
* Worker. Helps avoid circular dependencies and allows code to reason about | ||
* whether or not they are in a Worker, even if they never include the main | ||
* `ReactWorker` dependency. | ||
*/ | ||
var ExecutionEnvironment = { | ||
|
||
canUseDOM: canUseDOM, | ||
|
||
canUseWorkers: typeof Worker !== 'undefined', | ||
|
||
canUseEventListeners: | ||
canUseDOM && !!(window.addEventListener || window.attachEvent), | ||
|
||
canUseViewport: canUseDOM && !!window.screen, | ||
|
||
isInWorker: !canUseDOM // For now, this is true - might change in the future. | ||
|
||
}; | ||
|
||
module.exports = ExecutionEnvironment; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.