Commits

David Chambers committed 6dbbb09

move `corsNotSupported` to the correct module

  • Participants
  • Parent commits e6b108c

Comments (0)

Files changed (2)

File src/share.coffee

 
 lastSavedDocument = undefined
 
-corsNotSupported = ->
-  text = '''
-    # I'm sorry, Dave
-
-    Your browser appears not to support
-    [cross-origin resource sharing][1].
-
-
-    [1]: http://en.wikipedia.org/wiki/Cross-Origin_Resource_Sharing
-  '''
-  publish 'hashchange', Hashify.encode text
-  publish 'render', text, yes
-
 subscribe 'request:error', (data) ->
   message = data.status_txt.toLowerCase().replace(/_/g, ' ')
   wrapper.className = ''

File src/utils.coffee

   if window.JSON?.parse then JSON.parse data
   else do new Function "return #{data}"
 
+corsNotSupported = ->
+  text = '''
+    # I'm sorry, Dave
+
+    Your browser appears not to support
+    [cross-origin resource sharing][1].
+
+
+    [1]: http://en.wikipedia.org/wiki/Cross-Origin_Resource_Sharing
+  '''
+  publish 'hashchange', Hashify.encode text
+  publish 'render', text, yes
+
 sendRequest = (action, params, success) ->
   request = new XMLHttpRequest()
   try