fix sort bug in Scale9Sprite data pool

This commit is contained in:
pandamicro
2017-08-24 17:15:23 +08:00
parent e940eb948a
commit 475ea35b0c
+3 -1
View File
@@ -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);