Skip to content

Commit acb4dba

Browse files
committed
variable scoping issue, leading to clipped objects
1 parent c7b6035 commit acb4dba

File tree

5 files changed

+10
-13
lines changed

5 files changed

+10
-13
lines changed

build/Gruntfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ module.exports = function (grunt) {
263263

264264
// Load all the tasks we need
265265
grunt.loadNpmTasks('grunt-contrib-concat');
266-
grunt.loadNpmTasks('grunt-contrib-uglify');
266+
grunt.loadNpmTasks('grunt-contrib-uglify-es');
267267
grunt.loadNpmTasks('grunt-contrib-yuidoc');
268268
grunt.loadNpmTasks('grunt-contrib-compress');
269269
grunt.loadNpmTasks('grunt-contrib-copy');

build/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"devDependencies": {
99
"grunt": "~0.4.5",
1010
"grunt-contrib-concat": "~0.5.0",
11-
"grunt-contrib-uglify": "~0.6.0",
11+
"grunt-contrib-uglify-es": "^3.3.0",
1212
"grunt-contrib-yuidoc": "~0.5.2",
1313
"grunt-contrib-compress": "~0.12.0",
1414
"grunt-contrib-copy": "~0.7.0",

lib/easeljs-NEXT.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2024,7 +2024,7 @@ this.createjs = this.createjs||{};
20242024
/**
20252025
* Applies a clockwise rotation transformation to the matrix.
20262026
* @method rotate
2027-
* @param {Number} angle The angle to rotate by, in degrees. To use a value in radians, multiply it by `180/Math.PI`.
2027+
* @param {Number} angle The angle to rotate by, in degrees. To use a value in radians, multiply it by `Math.PI/180`.
20282028
* @return {Matrix2D} This matrix. Useful for chaining method calls.
20292029
**/
20302030
p.rotate = function(angle) {
@@ -2045,7 +2045,7 @@ this.createjs = this.createjs||{};
20452045
/**
20462046
* Applies a skew transformation to the matrix.
20472047
* @method skew
2048-
* @param {Number} skewX The amount to skew horizontally in degrees. To use a value in radians, multiply it by `180/Math.PI`.
2048+
* @param {Number} skewX The amount to skew horizontally in degrees. To use a value in radians, multiply it by `Math.PI/180`.
20492049
* @param {Number} skewY The amount to skew vertically in degrees.
20502050
* @return {Matrix2D} This matrix. Useful for chaining method calls.
20512051
*/
@@ -5868,7 +5868,7 @@ this.createjs = this.createjs||{};
58685868
this.radiusTL = radiusTL; this.radiusTR = radiusTR;
58695869
this.radiusBR = radiusBR; this.radiusBL = radiusBL;
58705870
}).prototype.exec = function(ctx) {
5871-
var max = (w<h?w:h)/2;
5871+
var max = (this.w<this.h?this.w:this.h)/2;
58725872
var mTL=0, mTR=0, mBR=0, mBL=0;
58735873
var x = this.x, y = this.y, w = this.w, h = this.h;
58745874
var rTL = this.radiusTL, rTR = this.radiusTR, rBR = this.radiusBR, rBL = this.radiusBL;
@@ -11462,7 +11462,7 @@ this.createjs = this.createjs||{};
1146211462
}
1146311463

1146411464
if(!this._directDraw && (!ignoreCache && item.cacheCanvas === null && item.filters !== null && item.filters.length)) {
11465-
var bounds;
11465+
let bounds;
1146611466
if (item.bitmapCache === null) {
1146711467
bounds = item.getBounds();
1146811468
item.bitmapCache = new createjs.BitmapCache();
@@ -17621,6 +17621,6 @@ this.createjs = this.createjs || {};
1762117621
* @type String
1762217622
* @static
1762317623
**/
17624-
s.buildDate = /*=date*/"Thu, 14 Jun 2018 21:18:20 GMT"; // injected by build process
17624+
s.buildDate = /*=date*/"Thu, 23 Aug 2018 11:33:29 GMT"; // injected by build process
1762517625

1762617626
})();

lib/easeljs-NEXT.min.js

Lines changed: 2 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/easeljs/display/StageGL.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2629,7 +2629,7 @@ this.createjs = this.createjs||{};
26292629
}
26302630

26312631
if(!this._directDraw && (!ignoreCache && item.cacheCanvas === null && item.filters !== null && item.filters.length)) {
2632-
var bounds;
2632+
let bounds;
26332633
if (item.bitmapCache === null) {
26342634
bounds = item.getBounds();
26352635
item.bitmapCache = new createjs.BitmapCache();

0 commit comments

Comments
 (0)