mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
fix sort bug in Scale9Sprite data pool
This commit is contained in:
@@ -32,7 +32,9 @@ var dataPool = {
|
||||
if (!this._pool[length]) {
|
||||
this._pool[length] = [data];
|
||||
this._lengths.push(length);
|
||||
this._lengths.sort();
|
||||
this._lengths.sort(function(a, b) {
|
||||
return a - b;
|
||||
});
|
||||
}
|
||||
else {
|
||||
this._pool[length].push(data);
|
||||
|
||||
Reference in New Issue
Block a user