File tree Expand file tree Collapse file tree 3 files changed +14
-17
lines changed
React.Web/Content/App_Start Expand file tree Collapse file tree 3 files changed +14
-17
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ of patent rights can be found in the PATENTS file in the same directory.
11
11
<PropertyGroup >
12
12
<Major >1</Major >
13
13
<Minor >1</Minor >
14
- <Build >0 </Build >
14
+ <Build >1 </Build >
15
15
<Revision >0</Revision >
16
16
<DevNuGetServer >http://reactjs.net/packages/</DevNuGetServer >
17
17
<MSBuildCommunityTasksPath >$(MSBuildProjectDirectory)\tools\MSBuildTasks</MSBuildCommunityTasksPath >
Original file line number Diff line number Diff line change 8
8
{
9
9
public static void Configure ( )
10
10
{
11
- ReactSiteConfiguration . Configuration = new ReactSiteConfiguration ( ) ;
11
+ // If you want to use fancy new ES6 features, uncomment this line:
12
+ // See http://reactjs.net/guides/es6.html for more information.
13
+ //ReactSiteConfiguration.Configuration.SetUseHarmony(true);
12
14
13
15
// If you want to use server-side rendering of React components,
14
16
// add all the necessary JavaScript files here. This includes
15
17
// your components as well as all of their dependencies.
16
- // See http://reactjs.net/ for more information.
17
-
18
- // Example:
18
+ // See http://reactjs.net/ for more information. Example:
19
19
//ReactSiteConfiguration.Configuration
20
20
// .AddScript("~/Scripts/First.jsx")
21
21
// .AddScript("~/Scripts/Second.jsx");
Original file line number Diff line number Diff line change @@ -17,24 +17,21 @@ namespace React
17
17
/// </summary>
18
18
public class ReactSiteConfiguration : IReactSiteConfiguration
19
19
{
20
- private static IReactSiteConfiguration _instance = new ReactSiteConfiguration ( ) ;
21
-
22
- /// <summary>
23
- /// All the scripts that have been added to this configuration
24
- /// </summary>
25
- private readonly IList < string > _scriptFiles = new List < string > ( ) ;
26
-
27
20
/// <summary>
28
21
/// Gets or sets the site-side configuration
29
22
/// </summary>
30
- public static IReactSiteConfiguration Configuration
23
+ public static IReactSiteConfiguration Configuration { get ; set ; }
24
+
25
+ static ReactSiteConfiguration ( )
31
26
{
32
- get
33
- {
34
- return _instance ;
35
- }
27
+ Configuration = new ReactSiteConfiguration ( ) ;
36
28
}
37
29
30
+ /// <summary>
31
+ /// All the scripts that have been added to this configuration
32
+ /// </summary>
33
+ private readonly IList < string > _scriptFiles = new List < string > ( ) ;
34
+
38
35
/// <summary>
39
36
/// Adds a script to the list of scripts that are executed. This should be called for all
40
37
/// React components and their dependencies.
You can’t perform that action at this time.
0 commit comments