Skip to content

Commit ac388bf

Browse files
Merge branch 'develop' of https://github.com/cocos2d/cocos2d-html5 into issue2261_LoaderBug
2 parents d595980 + d357782 commit ac388bf

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

cocos2d/core/platform/CCFileUtils.js

+4
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,10 @@ cc.FileUtils = cc.Class.extend({
423423
* @return {String} full path for a given filename.
424424
*/
425425
fullPathForFilename:function (filename) {
426+
if (filename.indexOf("://") > 0) {
427+
return filename;
428+
}
429+
426430
var found = false;
427431

428432
var newFileName = this._getNewFilename(filename);

extensions/CocoStudio/GUI/Layouts/UILayoutDefine.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ ccs.Margin = ccs.Class.extend(/** @lends ccs.Margin# */{
7676
right: 0,
7777
bottom: 0,
7878
ctor: function (margin, top, right, bottom) {
79-
if (top === undefined) {
79+
if (margin && top === undefined) {
8080
this.left = margin.left;
8181
this.top = margin.top;
8282
this.right = margin.right;

0 commit comments

Comments
 (0)