/**1* Copyright 2013-2015, Facebook, Inc.2* All rights reserved.3*4* This source code is licensed under the BSD-style license found in the5* LICENSE file in the root directory of this source tree. An additional grant6* of patent rights can be found in the PATENTS file in the same directory.7*8* @providesModule ReactComponentBrowserEnvironment9*/1011/*jslint evil: true */1213'use strict';1415var ReactDOMIDOperations = require("./ReactDOMIDOperations");16var ReactMount = require("./ReactMount");1718/**19* Abstracts away all functionality of the reconciler that requires knowledge of20* the browser context. TODO: These callers should be refactored to avoid the21* need for this injection.22*/23var ReactComponentBrowserEnvironment = {2425processChildrenUpdates:26ReactDOMIDOperations.dangerouslyProcessChildrenUpdates,2728replaceNodeWithMarkupByID:29ReactDOMIDOperations.dangerouslyReplaceNodeWithMarkupByID,3031/**32* If a particular environment requires that some resources be cleaned up,33* specify this in the injected Mixin. In the DOM, we would likely want to34* purge any cached node ID lookups.35*36* @private37*/38unmountIDFromEnvironment: function(rootNodeID) {39ReactMount.purgeID(rootNodeID);40}4142};4344module.exports = ReactComponentBrowserEnvironment;454647