Don't sort fonts
This commit is contained in:
parent
c2aaf5a0f9
commit
a7dad54f7b
|
@ -48,12 +48,6 @@ define([
|
|||
'common/main/lib/model/Font'
|
||||
], function(Backbone){ 'use strict';
|
||||
Common.Collections.Fonts = Backbone.Collection.extend({
|
||||
model: Common.Models.Font,
|
||||
comparator: function(item1, item2) {
|
||||
var n1 = item1.get('name').toLowerCase(),
|
||||
n2 = item2.get('name').toLowerCase();
|
||||
if (n1==n2) return 0;
|
||||
return (n1<n2) ? -1 : 1;
|
||||
}
|
||||
model: Common.Models.Font
|
||||
});
|
||||
});
|
||||
|
|
|
@ -120,11 +120,7 @@ define([
|
|||
});
|
||||
|
||||
var store = this.getCollection('Common.Collections.Fonts');
|
||||
|
||||
if (store) {
|
||||
store.add(fontsArray);
|
||||
store.sort();
|
||||
}
|
||||
store && store.add(fontsArray);
|
||||
|
||||
Common.NotificationCenter.trigger('fonts:load', store, select);
|
||||
}
|
||||
|
|
|
@ -71,11 +71,6 @@ export class storeTextSettings {
|
|||
type : font.asc_getFontType()
|
||||
});
|
||||
}
|
||||
|
||||
array.sort(function(a, b) {
|
||||
return (a.name.toLowerCase() > b.name.toLowerCase()) ? 1 : -1;
|
||||
});
|
||||
|
||||
this.fontsArray = array;
|
||||
}
|
||||
resetFontName (font) {
|
||||
|
|
|
@ -75,11 +75,6 @@ export class storeTextSettings {
|
|||
type : font.asc_getFontType()
|
||||
});
|
||||
}
|
||||
|
||||
array.sort(function(a, b) {
|
||||
return (a.name.toLowerCase() > b.name.toLowerCase()) ? 1 : -1;
|
||||
});
|
||||
|
||||
this.fontsArray = array;
|
||||
}
|
||||
|
||||
|
|
|
@ -139,11 +139,6 @@ export class storeCellSettings {
|
|||
type : font.asc_getFontType()
|
||||
});
|
||||
}
|
||||
|
||||
array.sort(function(a, b) {
|
||||
return (a.name.toLowerCase() > b.name.toLowerCase()) ? 1 : -1;
|
||||
});
|
||||
|
||||
this.fontsArray = array;
|
||||
}
|
||||
|
||||
|
|
|
@ -78,11 +78,6 @@ export class storeTextSettings {
|
|||
type : font.asc_getFontType()
|
||||
});
|
||||
}
|
||||
|
||||
array.sort(function(a, b) {
|
||||
return (a.name.toLowerCase() > b.name.toLowerCase()) ? 1 : -1;
|
||||
});
|
||||
|
||||
this.fontsArray = array;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue