Sync with CCBoot for web

This commit is contained in:
pandamicro 2015-10-10 00:32:51 +08:00
parent 0ea54868e2
commit 5ae2812bf8
4 changed files with 549 additions and 474 deletions

File diff suppressed because it is too large Load Diff

View File

@ -22,8 +22,19 @@
// Prepare JSB environment
var cc = cc || {};
var window = window || this;
var cc = cc || {};
/**
* @namespace jsb
* @name jsb
*/
var jsb = jsb || {};
/**
* The element contains the game canvas
* @type {HTMLDivElement}
*/
cc.container = null;
/**
* Iterate over an object or an array, executing a function for each matched element.

View File

@ -135,7 +135,7 @@ var TestController = cc.LayerGradient.extend({
// enable disable
if ( !cc.sys.isNative) {
if( 'opengl' in cc.sys.capabilities ){
if( cc._renderType !== cc.game.RENDER_TYPE_CANVAS ){
menuItem.enabled = (testNames[i].platforms & PLATFORM_HTML5) | (testNames[i].platforms & PLATFORM_HTML5_WEBGL);
}else{
menuItem.setEnabled( testNames[i].platforms & PLATFORM_HTML5 );

2
web

@ -1 +1 @@
Subproject commit 8085df89a73b18a08a7747064a894c9a8dc803c1
Subproject commit a9f493ae53d20945d8796660363da4e060a68ee2