Merge branch 'v1.9'

This commit is contained in:
Jare Guo
2018-04-15 14:42:16 +08:00
4 changed files with 28 additions and 9 deletions
+26
View File
@@ -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
-8
View File
@@ -1,8 +0,0 @@
machine:
node:
version: 6.12.3
dependencies:
pre:
- npm install -g gulp
- npm install gulp-qunit
+1
View File
@@ -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
View File
@@ -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;
};
}