mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
Merge branch 'v1.9'
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
|
||||
#
|
||||
version: 2
|
||||
jobs:
|
||||
test:
|
||||
steps:
|
||||
- run:
|
||||
command: npm test
|
||||
setup:
|
||||
docker:
|
||||
- image: circleci/node:latest
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
command: npm install -g gulp
|
||||
- run:
|
||||
command: npm install gulp-qunit
|
||||
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
build-test:
|
||||
jobs:
|
||||
- test:
|
||||
requires:
|
||||
- setup
|
||||
@@ -1,8 +0,0 @@
|
||||
machine:
|
||||
node:
|
||||
version: 6.12.3
|
||||
|
||||
dependencies:
|
||||
pre:
|
||||
- npm install -g gulp
|
||||
- npm install gulp-qunit
|
||||
@@ -502,6 +502,7 @@ _ccsg.Label = _ccsg.Node.extend({
|
||||
//avoid the error in wechat devtool platform
|
||||
if (!fontFamilyName) {
|
||||
fontFamilyName = cc.CustomFontLoader._getFontFamily(fontHandle);
|
||||
cc.warn("TTF font is not supported on debugger, but it will be displayed correctly on mobile device.");
|
||||
}
|
||||
callback();
|
||||
} else {
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ if (!Math.sign) {
|
||||
|
||||
if (!Number.isInteger) {
|
||||
Number.isInteger = function (value) {
|
||||
return typeof value === 'number' && (value | 0) === value;
|
||||
return typeof value === 'number' && isFinite(value) && Math.floor(value) === value;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user