File tree 2 files changed +8
-9
lines changed
2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -40,23 +40,21 @@ define(function (require) {
40
40
this . resize ( ) ;
41
41
42
42
// Modify storage
43
- var oldDelFromMap = storage . delFromMap ;
44
- var oldAddToMap = storage . addToMap ;
45
- storage . delFromMap = function ( elId ) {
46
- var el = storage . get ( elId ) ;
47
-
48
- oldDelFromMap . call ( storage , elId ) ;
43
+ var oldDelFromStorage = storage . delFromStorage ;
44
+ var oldAddToStorage = storage . addToStorage ;
45
+ storage . delFromStorage = function ( el ) {
46
+ oldDelFromStorage . call ( storage , el ) ;
49
47
50
48
if ( el ) {
51
49
el . onRemove && el . onRemove ( vmlRoot ) ;
52
50
}
53
51
} ;
54
52
55
- storage . addToMap = function ( el ) {
53
+ storage . addToStorage = function ( el ) {
56
54
// Displayable already has a vml node
57
55
el . onAdd && el . onAdd ( vmlRoot ) ;
58
56
59
- oldAddToMap . call ( storage , el ) ;
57
+ oldAddToStorage . call ( storage , el ) ;
60
58
} ;
61
59
62
60
this . _firstPaint = true ;
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ if (!require('../core/env').canvasSupported) {
13
13
var ZImage = require ( '../graphic/Image' ) ;
14
14
var Text = require ( '../graphic/Text' ) ;
15
15
var Path = require ( '../graphic/Path' ) ;
16
+ var PathProxy = require ( '../core/PathProxy' ) ;
16
17
17
18
var Gradient = require ( '../graphic/Gradient' ) ;
18
19
@@ -482,7 +483,7 @@ if (!require('../core/env').canvasSupported) {
482
483
strokeEl . weight = lineWidth + 'px' ;
483
484
}
484
485
485
- var path = this . path ;
486
+ var path = this . path || ( this . path = new PathProxy ( ) ) ;
486
487
if ( this . __dirtyPath ) {
487
488
path . beginPath ( ) ;
488
489
this . buildPath ( path , this . shape ) ;
You can’t perform that action at this time.
0 commit comments