Skip to content

Commit

Permalink
refactor: use renderer.renderType to check isDOMrenderer
Browse files Browse the repository at this point in the history
  • Loading branch information
06wj committed Feb 17, 2016
1 parent c6a36fb commit 375319b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/view/DOMElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ var DOMElement = Class.create(/** @lends DOMElement.prototype */{
* @private
*/
render: function(renderer, delta){
var canvas = renderer.canvas;
if(canvas.getContext){
if(renderer.renderType !== 'dom'){
var canvas = renderer.canvas;
var elem = this.drawable.domElement, depth = this.depth,
nextElement = canvas.nextSibling, nextDepth;
if(elem.parentNode) return;
Expand Down

0 comments on commit 375319b

Please sign in to comment.