Skip to content

Commit 3e3599d

Browse files
committed
Added Camera.setName method for chaining.
1 parent 08ce1c3 commit 3e3599d

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

v3/src/camera/Camera.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ var Camera = new Class({
7575
removeBounds: require('./components/RemoveBounds'),
7676
setBackgroundColor: require('./components/SetBackgroundColor'),
7777
setBounds: require('./components/SetBounds'),
78+
setName: require('./components/SetName'),
7879
setPosition: require('./components/SetPosition'),
7980
setRotation: require('./components/SetRotation'),
8081
setRoundPixels: require('./components/SetRoundPixels'),
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
var SetName = function (value)
2+
{
3+
if (value === undefined) { value = ''; }
4+
5+
this.name = value;
6+
7+
return this;
8+
};
9+
10+
module.exports = SetName;

v3/src/checksum.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
var CHECKSUM = {
2-
build: '4bd62f10-73f1-11e7-b8d9-bbb34810695d'
2+
build: 'c4c460d0-73f7-11e7-8118-7df32620cd19'
33
};
44
module.exports = CHECKSUM;

0 commit comments

Comments
 (0)