Permalink
Browse files

Screw.root_element is created inline, instead of stored in a callback.

  • Loading branch information...
1 parent 03cdeaf commit 894ded3a328a7e6d69e37c0604e2fbbade1b6a84 @btakita btakita committed Apr 28, 2008
Showing with 7 additions and 10 deletions.
  1. +7 −10 lib/screw.builder.js
View
@@ -7,16 +7,13 @@ var Screw = {
if(!Screw.root_element) {
Screw.root_element = $('<div class="describe">');
- $(function() {
- Screw.root_element
- .addClass('describe')
- .append($('<h3 class="status">'))
- .append('<ol class="befores">')
- .append('<ul class="its">')
- .append('<ul class="describes">')
- .append('<ol class="afters">')
- Screw.Specifications.context.push(Screw.root_element);
- })
+ Screw.root_element
+ .append($('<h3 class="status">'))
+ .append('<ol class="befores">')
+ .append('<ul class="its">')
+ .append('<ul class="describes">')
+ .append('<ol class="afters">')
+ Screw.Specifications.context.push(Screw.root_element);
}
Screw.last_suite = suite;

0 comments on commit 894ded3

Please sign in to comment.