Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bug fixes

  • Loading branch information...
commit 48107a72e82972fa06576ae6786ef071255b3f02 1 parent bd12e53
Tobias Schneider authored
Showing with 4 additions and 4 deletions.
  1. +2 −2 src/movie.js
  2. +2 −2 src/renderer/svg.js
View
4 src/movie.js
@@ -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;
View
4 src/renderer/svg.js
@@ -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":
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.