Skip to content

Commit

Permalink
fix #9
Browse files Browse the repository at this point in the history
  • Loading branch information
张磊 committed Jun 26, 2018
1 parent 28e1b5c commit 7ba33fc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion packages/cax/dist/cax.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* cax v1.0.9
* cax v1.0.10
* By https://github.com/dntzhang
* Github: https://github.com/dntzhang/cax
* MIT Licensed.
Expand Down Expand Up @@ -996,6 +996,7 @@ var Bitmap = function (_DisplayObject) {
if (!_this.rect) {
_this.rect = [0, 0, result.width, result.height];
}
onLoad && onLoad.call(_this);
});
} else {
_this.img = _util2.default.isWegame ? wx.createImage() : new window.Image();
Expand Down
4 changes: 2 additions & 2 deletions packages/cax/dist/cax.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/cax/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cax",
"version": "1.0.9",
"version": "1.0.10",
"description": "小程序、小游戏和 Web 通用 Canvas 渲染引擎",
"main": "dist/cax.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions packages/cax/src/render/display/bitmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class Bitmap extends DisplayObject {
if (!this.rect) {
this.rect = [0, 0, result.width, result.height]
}
onLoad && onLoad.call(this)
})
} else {
this.img = util.isWegame ? wx.createImage() : new window.Image()
Expand Down

0 comments on commit 7ba33fc

Please sign in to comment.