Skip to content

Commit

Permalink
0.5.5. fixed incorrect serverCompilation value
Browse files Browse the repository at this point in the history
  • Loading branch information
balupton committed Jul 18, 2011
1 parent e807887 commit 9261489
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions lib/templates/srcLoader.coffee
Expand Up @@ -23,33 +23,33 @@ window.Buildr ?= class
host = (document.location.hostname||document.location.host)
protocol = document.location.protocol
rootUrl = "#{protocol}//#{host}"
# Port

# Port
if document.location.port
rootUrl += ':'+document.location.port
rootUrl += '/'

# Return
rootUrl

# Load Styles and Scripts
load: (next) ->
me = @
me.loadStyle ->
me.loadScript ->
next() if next

# Script Loader
loadScriptIndex: 0
loadScript: (next) ->
# Prepare
me = @
scriptSrc = @baseUrl + @scripts[@loadScriptIndex]
scriptSrc += '?js' if @serverCompilation?
scriptSrc += '?js' if @serverCompilation
scriptLoaded = ->
if this.readyState? and this.readyState isnt 'complete'
if @readyState? and @readyState isnt 'complete'
return
if this.src? and this.src isnt scriptSrc
if @src? and @src isnt scriptSrc
return
++me.loadScriptIndex
me.loadScript next
Expand Down Expand Up @@ -82,7 +82,7 @@ window.Buildr ?= class
# Prepare
me = @
styleHref = @baseUrl + @styles[@loadStyleIndex]
styleHref += '?css' if @serverCompilation?
styleHref += '?css' if @serverCompilation
styleLoaded = ->
++me.loadStyleIndex
me.loadStyle next
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "buildr",
"version": "0.5.4",
"version": "0.5.5",
"description": "The (Java|Coffee)Script and (CSS|Less) (Builder|Bundler|Packer|Minifier|Merger|Checker)",
"homepage": "https://github.com/balupton/buildr.npm",
"keywords": [
Expand Down

0 comments on commit 9261489

Please sign in to comment.