Skip to content
Browse files

fixed exception if steal is not used

  • Loading branch information...
1 parent fd3167c commit d756b44b9d00dffc70692fca0779c519c0104281 Sebastian Schleicher committed Sep 26, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 dom/fixture/fixture.js
View
5 dom/fixture/fixture.js
@@ -35,7 +35,10 @@ steal('jquery/dom',
var url = settings.fixture;
if (/^\/\//.test(url) ) {
- url = steal.root.mapJoin(settings.fixture.substr(2))+'';
+ var sub = settings.fixture.substr(2) + '';
+ url = typeof steal === "undefined" ?
+ url = "/" + sub :
+ steal.root.mapJoin(sub) +'';
}
//!steal-remove-start
steal.dev.log("looking for fixture in " + url);

0 comments on commit d756b44

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