Commit 203469d4 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

проверка на null

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@54250 954022d7-b5bf-4e40-9824-e11837661b57
parent 897714dd
...@@ -406,6 +406,8 @@ function DrawingContext(settings) { ...@@ -406,6 +406,8 @@ function DrawingContext(settings) {
if ( !(this instanceof DrawingContext) ) { if ( !(this instanceof DrawingContext) ) {
return new DrawingContext(settings); return new DrawingContext(settings);
} }
this.canvas = null;
this.ctx = null;
this.setCanvas(settings.canvas); this.setCanvas(settings.canvas);
...@@ -593,6 +595,9 @@ DrawingContext.prototype = { ...@@ -593,6 +595,9 @@ DrawingContext.prototype = {
*/ */
initContextSmoothing: function () { initContextSmoothing: function () {
var ctx = this.ctx; var ctx = this.ctx;
if (null === ctx)
return;
// Не убирать. Баг на android при scroll!!! // Не убирать. Баг на android при scroll!!!
if (ctx.imageSmoothingEnabled) if (ctx.imageSmoothingEnabled)
ctx.imageSmoothingEnabled = false; ctx.imageSmoothingEnabled = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment