Permalink
Browse files

Remove double assignment

  • Loading branch information...
1 parent c286368 commit 97e1f6cbca984b500c9a2b89d10f59174a47c8ce @gilangcp committed Apr 21, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 vnEngine.js
View
@@ -618,8 +618,8 @@ function vnEngine(){
this.playVideo = function(label){
var video = vnEngine.resourceManager.getResource(label);
- video.vid.height = vnEngine.canvas.height;
- video.vid.width = vnEngine.canvas.width;
+ video.vid.setAttribute('height',vnEngine.canvas.height);
+ video.vid.setAttribute('width',vnEngine.canvas.width);
console.log(video.vid);
var bitmap = new Bitmap(video.vid);
@@ -720,7 +720,6 @@ function Button(text,x,y,width,height){
function GraphicsManager(){
this.changeBackground = function(imageLabel,callback){
vnEngine.stateManager.backgroundImage = imageLabel;
- vnEngine.stateManager.backgroundImage = imageLabel;
var res = vnEngine.resourceManager.getResource(imageLabel).img;
var bitmap = new Bitmap(res);
bitmap.scaleY = vnEngine.canvas.height / res.height;

0 comments on commit 97e1f6c

Please sign in to comment.