Permalink
Browse files

Added style object to Canvas for compatability with browsers

  • Loading branch information...
1 parent b0425bc commit b9c4dd0f22bcd5822f79f3f403cb7dcb41e8b027 @phoboslab committed Nov 12, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 ejecta.js
View
@@ -31,6 +31,7 @@ window.navigator = {
// Create the default screen canvas
window.canvas = new Ejecta.Canvas();
window.canvas.type = 'canvas';
+window.canvas.style = {};
// The console object
window.console = {
@@ -101,7 +102,10 @@ window.document = {
createElement: function( name ) {
if( name === 'canvas' ) {
- return new Ejecta.Canvas();
+ var canvas = new Ejecta.Canvas();
+ canvas.type = 'canvas';
+ canvas.style = {};
+ return canvas;
}
else if( name == 'audio' ) {
return new Ejecta.Audio();

0 comments on commit b9c4dd0

Please sign in to comment.