Skip to content

Commit

Permalink
Merge branch 'master' of github.com:jupiterjs/steal into amdify
Browse files Browse the repository at this point in the history
  • Loading branch information
justinbmeyer committed Jul 16, 2012
2 parents 8b20de2 + caf109f commit 722823d
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 31 deletions.
2 changes: 1 addition & 1 deletion build/js/jsminify.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ steal('steal','steal/parse',function(steal, parse){
// removes dev comments from text
js.clean = function( text, file ) {
var parsedTxt = String(java.lang.String(text)
.replaceAll("(?s)\/\/@steal-remove-start(.*?)\/\/@steal-remove-end", ""));
.replaceAll("(?s)\/\/!steal-remove-start(.*?)\/\/!steal-remove-end", ""));

// the next part is slow, try to skip if possible
// if theres not a standalone steal.dev, skip
Expand Down
9 changes: 6 additions & 3 deletions build/pluginify/pluginify.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ steal('steal/parse','steal/build').then(

opts.exclude = !opts.exclude ? [] : (isArray(opts.exclude) ? opts.exclude : [opts.exclude]);
opts.global = opts.global || "jQuery";
opts.namespace = opts.namespace || "namespace";

if (opts.nojquery) {
jq = false;
Expand Down Expand Up @@ -105,11 +106,13 @@ steal('steal/parse','steal/build').then(
}, true, true);

var output = out.join(";\n");
if(opts.wrapInner && opts.wrapInner.length === 2){
if ( opts.wrapInner && opts.wrapInner.length === 2 ) {
output = opts.wrapInner[0] + output + opts.wrapInner[1];
}
if(opts.onefunc){
output = "(function(can, window, undefined){"+ output+ "})("+opts.global+", this );";
if ( opts.onefunc ) {
output = "(function( " + opts.namespace + ", window, undefined ){"
+ output +
"}( " + opts.global + ", this ));";
}
if (opts.compress) {
var compressorName = (typeof(opts.compress) == "string") ? opts.compress : "localClosure";
Expand Down
2 changes: 1 addition & 1 deletion steal.js
Original file line number Diff line number Diff line change
Expand Up @@ -1502,7 +1502,7 @@ request = function( options, success, error ) {
},
check = function(){
var status;
if ( request.readyState === 4 ) {
if ( request && request.readyState === 4 ) {
status = request.status;
if ( status === 500 || status === 404 ||
status === 2 || request.status < 0 ||
Expand Down
Loading

0 comments on commit 722823d

Please sign in to comment.