Permalink
Browse files

closing tags to fix env.js complains

  • Loading branch information...
1 parent d755e13 commit 59d2296bf6e090c993b70cb5cf9d1a0b90c7b663 @bartaz committed Aug 12, 2009
Showing with 18 additions and 16 deletions.
  1. +18 −16 lib/screw.builder.js
View
@@ -18,12 +18,12 @@ var Screw = (function($) {
context: [],
describe: function(name, fn) {
- var describe = $('<li class="describe">')
- .append($('<h1>').text(name))
- .append('<ol class="befores">')
- .append('<ul class="its">')
- .append('<ul class="describes">')
- .append('<ol class="afters">');
+ var describe = $('<li class="describe"></li>')
+ .append($('<h1></h1>').text(name))
+ .append('<ol class="befores"></ol>')
+ .append('<ul class="its"></ul>')
+ .append('<ul class="describes"></ul>')
+ .append('<ol class="afters"></ol>');
this.context.push(describe);
fn.call();
@@ -35,8 +35,8 @@ var Screw = (function($) {
},
it: function(name, fn) {
- var it = $('<li class="it">')
- .append($('<h2>').text(name))
+ var it = $('<li class="it"></li>')
+ .append($('<h2></h2>').text(name))
.data('screwunit.run', fn);
this.context[this.context.length-1]
@@ -45,7 +45,7 @@ var Screw = (function($) {
},
before: function(fn) {
- var before = $('<li class="before">')
+ var before = $('<li class="before"></li>')
.data('screwunit.run', fn);
this.context[this.context.length-1]
@@ -54,7 +54,7 @@ var Screw = (function($) {
},
after: function(fn) {
- var after = $('<li class="after">')
+ var after = $('<li class="after"></li>')
.data('screwunit.run', fn);
this.context[this.context.length-1]
@@ -65,16 +65,18 @@ var Screw = (function($) {
};
$(screw).queue(function() { $(screw).trigger('loading') });
+
$(function() {
- $('<div class="describe">')
- .append('<h3 class="status">')
- .append('<ol class="befores">')
- .append('<ul class="describes">')
- .append('<ol class="afters">')
+ $('<div class="describe"></div>')
+ .append('<h3 class="status"></h3>')
+ .append('<ol class="befores"></ol>')
+ .append('<ul class="describes"></ul>')
+ .append('<ol class="afters"></ol>')
.appendTo('body');
-
+
$(screw).dequeue();
$(screw).trigger('loaded');
});
+
return screw;
})(jQuery);

0 comments on commit 59d2296

Please sign in to comment.