File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,13 @@ var p = DisplayObject.prototype;
75
75
**/
76
76
DisplayObject . _hitTestContext = DisplayObject . _hitTestCanvas . getContext ( "2d" ) ;
77
77
78
+ /**
79
+ * @property _nextCacheID
80
+ * @type Number
81
+ * @static
82
+ * @protected
83
+ **/
84
+ DisplayObject . _nextCacheID = 1 ;
78
85
79
86
/**
80
87
* The alpha (transparency) for this display object. 0 is fully transparent, 1 is fully opaque.
@@ -423,7 +430,7 @@ var p = DisplayObject.prototype;
423
430
this . _cacheOffsetX = x ;
424
431
this . _cacheOffsetY = y ;
425
432
this . _applyFilters ( ) ;
426
- this . cacheID ++ ;
433
+ this . cacheID = DisplayObject . _nextCacheID ++ ;
427
434
}
428
435
429
436
/**
@@ -444,7 +451,7 @@ var p = DisplayObject.prototype;
444
451
this . draw ( ctx , true ) ;
445
452
if ( compositeOperation ) { ctx . globalCompositeOperation = "source-over" ; }
446
453
this . _applyFilters ( ) ;
447
- this . cacheID ++ ;
454
+ this . cacheID = DisplayObject . _nextCacheID ++ ;
448
455
}
449
456
450
457
/**
@@ -453,7 +460,7 @@ var p = DisplayObject.prototype;
453
460
**/
454
461
p . uncache = function ( ) {
455
462
this . _cacheDataURL = this . cacheCanvas = null ;
456
- this . _cacheOffsetX = this . _cacheOffsetY = 0 ;
463
+ this . cacheID = this . _cacheOffsetX = this . _cacheOffsetY = 0 ;
457
464
}
458
465
459
466
/**
You can’t perform that action at this time.
0 commit comments