From 9261489ad1dc1625a4b39d76293f51145bc5879c Mon Sep 17 00:00:00 2001 From: Benjamin Lupton Date: Tue, 19 Jul 2011 00:52:29 +1000 Subject: [PATCH] 0.5.5. fixed incorrect serverCompilation value --- lib/templates/srcLoader.coffee | 16 ++++++++-------- package.json | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/templates/srcLoader.coffee b/lib/templates/srcLoader.coffee index c21e4f3..419b341 100644 --- a/lib/templates/srcLoader.coffee +++ b/lib/templates/srcLoader.coffee @@ -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 @@ -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 diff --git a/package.json b/package.json index 156d78a..0cf7afe 100644 --- a/package.json +++ b/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": [