Skip to content
Browse files

getting clean to work and basic tests too

  • Loading branch information...
1 parent 0b7c344 commit debd315e8fcbbfb0a2026abbfb31b220acd10438 @justinbmeyer justinbmeyer committed
Showing with 640 additions and 677 deletions.
  1. +1 −1 clean/clean.js
  2. +1 −1 cleanjs
  3. +635 −672 steal.js
  4. +3 −3 test/qunit/steal_test.js
View
2 clean/clean.js
@@ -1,7 +1,7 @@
// lets you know if your JS sucks and will try to clean it for you
// using with jslint: js steal/cleanjs path/to/file -jslint
-steal('steal/build').then('steal/clean/beautify.js','steal/clean/jslint.js','steal/rhino/prompt.js', function(steal){
+steal('steal','steal/build','steal/clean/beautify.js','steal/clean/jslint.js','steal/rhino/prompt.js', function(steal){
var extend = function( d, s ) {
for ( var p in s ) d[p] = s[p];
return d;
View
2 cleanjs
@@ -1,5 +1,5 @@
load("steal/rhino/rhino.js");
-steal('steal/clean', function () {
+steal('steal/clean', function() {
var url = _args.shift();
steal.clean(url, _args);
});
View
1,307 steal.js
635 additions, 672 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
6 test/qunit/steal_test.js
@@ -309,7 +309,7 @@ test("filename", function(){
test("require JS", function(){
stop();
steal.require({
- src : src('steal/test/files/require.js'),
+ id: src('steal/test/files/require.js'),
type: "js"
}, function(){
start();
@@ -320,7 +320,7 @@ test("filename", function(){
test("require CSS", function(){
stop();
steal.require({
- src : src('steal/test/files/require.css'),
+ id: src('steal/test/files/require.css'),
type: "css"
}, function(){
setTimeout(function(){
@@ -342,7 +342,7 @@ test("filename", function(){
});
steal.require({
- src : src('steal/test/files/require.foo'),
+ id: src('steal/test/files/require.foo'),
type: "foo"
}, function(){
start();

0 comments on commit debd315

Please sign in to comment.
Something went wrong with that request. Please try again.