mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-16 10:34:55 -05:00
removing CoffeeScript.activate() simply including the tag will do for text/coffeescript
This commit is contained in:
@@ -40,7 +40,6 @@ exports.tree: (code) ->
|
||||
|
||||
# Activate CoffeeScript in the browser by having it compile and eval
|
||||
# all script tags with a content-type of text/coffeescript.
|
||||
exports.activate: ->
|
||||
scripts: document.getElementsByTagName 'script'
|
||||
for script in scripts when script.type is 'text/coffeescript'
|
||||
eval exports.compile script.innerHTML
|
||||
if document? and document.getElementsByTagName
|
||||
for tag in document.getElementsByTagName('script') when tag.type is 'text/coffeescript'
|
||||
eval exports.compile tag.innerHTML
|
||||
|
||||
Reference in New Issue
Block a user