meltingice / CamanJS

Javascript HTML5 (Ca)nvas (Man)ipulation
http://camanjs.com
BSD 3-Clause "New" or "Revised" License
3.56k stars 406 forks source link

After resize new canvas is without id #66

Open klangner opened 11 years ago

klangner commented 11 years ago

Resize function creates new canvas element. But this new canvas doesn't have the old canvas id. It means that after calling:

Caman('#picture', function () {
    this.resize({
       width: 1024,
    height: 768
    });
    this.render();
});

I'm not able to use '#picture' id anymore