File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change 150
150
151
151
( ! this . o . displayInput ) && this . $ . hide ( ) ;
152
152
153
- this . $c = $ ( '<canvas width="' +
154
- this . o . width + 'px" height="' +
155
- this . o . height + 'px"></canvas>' ) ;
153
+ this . $c = $ ( document . createElement ( 'canvas' ) ) . attr ( {
154
+ width : this . o . width ,
155
+ height : this . o . height
156
+ } ) ;
156
157
158
+ if ( typeof G_vmlCanvasManager !== 'undefined' ) {
159
+ G_vmlCanvasManager . initElement ( this . $c [ 0 ] ) ;
160
+ }
161
+
157
162
this . c = this . $c [ 0 ] . getContext ? this . $c [ 0 ] . getContext ( '2d' ) : null ;
158
163
159
164
if ( ! this . c ) {
209
214
this . _draw = function ( ) {
210
215
211
216
// canvas pre-rendering
212
- var d = true ,
213
- c = document . createElement ( 'canvas' ) ;
214
-
215
- c . width = s . o . width * s . scale ;
216
- c . height = s . o . height * s . scale ;
217
+ var d = true ;
217
218
218
- s . g = c . getContext ( '2d' ) ;
219
+ s . g = s . c ;
219
220
220
221
s . clear ( ) ;
221
222
224
225
225
226
( d !== false ) && s . draw ( ) ;
226
227
227
- s . c . drawImage ( c , 0 , 0 ) ;
228
- c = null ;
229
228
} ;
230
229
231
230
this . _touch = function ( e ) {
682
681
) . parent ( ) ;
683
682
} ;
684
683
685
- } ) ( jQuery ) ;
684
+ } ) ( jQuery ) ;
You can’t perform that action at this time.
0 commit comments