fecs check

This commit is contained in:
kekee000 2015-04-13 21:12:04 +08:00
parent 6767fd6b43
commit 626975a0df
6 changed files with 13 additions and 9 deletions

View File

@ -42,7 +42,7 @@ define(
if (condition === 'unicode') {
if (value.match(unicodeREG)) {
value = value.split(',');
value = value.split(',');
}
else {
value = value.split('').map(function (c) {

View File

@ -264,6 +264,7 @@ define(
/**
* 关闭选项卡
* @param {?Object} setting 设置选项
*/
Setting.prototype.hide = function (setting) {
if (undefined !== setting) {

View File

@ -181,7 +181,7 @@ define(
getConfig: function (id) {
var list = this.items();
var item = list.filter(function (item) {
return item.id === id
return item.id === id;
})[0];
if (!item) {

View File

@ -70,7 +70,10 @@ define(
str += '<dl data-id="' + proj.id + '">'
+ '<dt>' + proj.name + '</dt>'
+ '<dd>'
+ (proj.config && proj.config.sync ? '<span data-action="sync" title="同步当前字体">同步</span>' : '')
+ (proj.config && proj.config.sync
? '<span data-action="sync" title="同步当前字体">同步</span>'
: ''
)
+ '<span data-action="saveas">另存为</span>'
+ '<span data-action="del">删除</span>'
+ '</dd>'

View File

@ -100,6 +100,8 @@ define(
* @param {Object} projectId 项目编号或者同步选项
* @param {?Object} ttf 字体对象
* @param {?Object} syncConfig 同步选项
*
* @return {Object} Promise对象
*/
addTask: function (projectId, ttf, syncConfig) {

View File

@ -107,9 +107,8 @@ define(
) {
return [s0];
}
else {
return false;
}
return false;
}
if (seg2[0] === seg2[1] && seg2[0] === seg2[2] && seg2[0] === 0) {
@ -119,9 +118,8 @@ define(
) {
return [t0];
}
else {
return false;
}
return false;
}
// x轴重叠