Permalink
Browse files

fixing conditionals

  • Loading branch information...
1 parent 8f81120 commit 222331485e0ecbb6aa04899e655f4ed329eeecc3 @arboleya committed Apr 7, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 lib/toaster.js
  2. +2 −2 src/toaster/core/script.coffee
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -51,15 +51,15 @@ class Script
# as well as the expose thing
# PACKAGING=true && EXPOSE=null
- if @module.packaging && @module.expose is null
+ if @module.packaging && !@module.expose?
repl = "$1 __t('#{@namespace}').$2$3"
# PACKAGING=true && EXPOSE=something
else if @module.packaging && @module.expose?
repl = "$1 __t('#{@namespace}', #{@module.expose}).$2$3"
# PACKAGING=false && EXPOSE=something
- else if @module.packaging is false && @module.expose?
+ else if !@module.packaging && @module.expose?
repl = "$1 #{@module.expose}.$2$3"
if repl?

0 comments on commit 2223314

Please sign in to comment.