Permalink
Browse files

Removing Screw.global_suite_added because the existance of Screw.root…

…_element can be used to verify it gets created.
  • Loading branch information...
btakita committed Apr 28, 2008
1 parent 30e613d commit 03cdeafe85117dde9f9ad21302b88c6fc8be75d4
Showing with 2 additions and 4 deletions.
  1. +2 −4 lib/screw.builder.js
View
@@ -5,9 +5,9 @@ var Screw = {
"with (specifications) { with (matchers) { " + contents + " } }"
);
- if(!Screw.global_suite_added) {
+ if(!Screw.root_element) {
+ Screw.root_element = $('<div class="describe">');
$(function() {
- Screw.root_element = $('<div class="describe">');
Screw.root_element
.addClass('describe')
.append($('<h3 class="status">'))
@@ -17,7 +17,6 @@ var Screw = {
.append('<ol class="afters">')
Screw.Specifications.context.push(Screw.root_element);
})
- Screw.global_suite_added = true
}
Screw.last_suite = suite;
@@ -29,7 +28,6 @@ var Screw = {
}
})
},
- global_suite_added: false,
root_element: null,
last_suite: null,
Specifications: {

0 comments on commit 03cdeaf

Please sign in to comment.