mirror of https://github.com/axmolengine/axmol.git
Sync with CCBoot for web
This commit is contained in:
parent
0ea54868e2
commit
5ae2812bf8
File diff suppressed because it is too large
Load Diff
|
@ -22,8 +22,19 @@
|
||||||
|
|
||||||
// Prepare JSB environment
|
// Prepare JSB environment
|
||||||
|
|
||||||
var cc = cc || {};
|
|
||||||
var window = window || this;
|
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.
|
* Iterate over an object or an array, executing a function for each matched element.
|
||||||
|
|
|
@ -135,7 +135,7 @@ var TestController = cc.LayerGradient.extend({
|
||||||
|
|
||||||
// enable disable
|
// enable disable
|
||||||
if ( !cc.sys.isNative) {
|
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);
|
menuItem.enabled = (testNames[i].platforms & PLATFORM_HTML5) | (testNames[i].platforms & PLATFORM_HTML5_WEBGL);
|
||||||
}else{
|
}else{
|
||||||
menuItem.setEnabled( testNames[i].platforms & PLATFORM_HTML5 );
|
menuItem.setEnabled( testNames[i].platforms & PLATFORM_HTML5 );
|
||||||
|
|
2
web
2
web
|
@ -1 +1 @@
|
||||||
Subproject commit 8085df89a73b18a08a7747064a894c9a8dc803c1
|
Subproject commit a9f493ae53d20945d8796660363da4e060a68ee2
|
Loading…
Reference in New Issue