Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Schneider committed Jun 12, 2010
1 parent bd12e53 commit 48107a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/movie.js
Expand Up @@ -49,14 +49,14 @@
t._renderer = new r(t.width, t.height, frmWidth, frmHeight, t.quality, t.scale, t.bgcolor);
t.totalFrames = t._frameCount;
if(id){
var stage = doc.getElementById(id),
var stage = t._stage = doc.getElementById(id),
bgcolor = t.bgcolor,
bgParts = [],
poster = t.poster;
stage.innerHTML = '';
if(t.bgcolor){ bgParts.push(bgcolor); }
if(poster){ bgParts.push(poster, "center center"); }
stage.setAttribute("style", "background: " + bgParts.join(' '));
if(bgParts.length){ stage.setAttribute("style", "background: " + bgParts.join(' ')); }
}
t._changeReadyState(s.LOADED);
break;
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/svg.js
Expand Up @@ -123,7 +123,7 @@
item = d[id],
type = obj.type,
node = null,
attrs = {id: type[o] + '_' + id};
attrs = {id: type[0] + id};
if(!item || !item.node){
switch(type){
case "shape":
Expand Down Expand Up @@ -546,7 +546,7 @@
break;
default:
var node = t._createElement("use");
t._setAttributes(node, {href: "#o" + obj.id}, NS_XLINK);
t._setAttributes(node, {href: "#" + type[0] + obj.id}, NS_XLINK);
}
}
return node;
Expand Down

0 comments on commit 48107a7

Please sign in to comment.