Skip to content

Commit

Permalink
Merge pull request #988 from kanaabe/global-issue
Browse files Browse the repository at this point in the history
@eessex => Make window.global available on ArticleList
  • Loading branch information
eessex committed Mar 23, 2017
2 parents b89e885 + 0dffb8d commit 8de79d9
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion client/apps/edit/components/section_text/index.coffee
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
React = require 'react'
ReactDOM = require 'react-dom'
window.global = window
sd = require('sharify').data
window.process = {env: {NODE_ENV: sd.NODE_ENV}}

Expand Down
1 change: 1 addition & 0 deletions client/assets/main.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

Backbone = require 'backbone'
window.jQuery = window.$ = $ = require 'jquery'
window.global = window

class Router extends Backbone.Router

Expand Down
2 changes: 1 addition & 1 deletion client/components/article_list/index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
# articles: []
# }

_ = require 'underscore'
React = require 'react'
_ = require 'underscore'
{ input, div, a, h1, h2 } = React.DOM
moment = require 'moment'
icons = -> require('./icons.jade') arguments...
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
# }

React = require 'react'
window.global = window
sd = require('sharify').data
window.process = {env: {NODE_ENV: sd.NODE_ENV}}
{ ContentState,
Expand Down
1 change: 0 additions & 1 deletion client/components/rich_text_caption/index.coffee
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
React = require 'react'
window.global = window
sd = require('sharify').data
window.process = {env: {NODE_ENV: sd.NODE_ENV}}
{ convertToRaw,
Expand Down

0 comments on commit 8de79d9

Please sign in to comment.