Skip to content

Commit 50baa26

Browse files
committed
addBase64 will return intance for chaining
1 parent 8573e60 commit 50baa26

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/textures/TextureManager.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ var TextureManager = new Class({
228228
*
229229
* @param {string} key - The unique string-based key of the Texture.
230230
* @param {*} data - The Base64 encoded data.
231+
*
232+
* @return {this} This Texture Manager instance.
231233
*/
232234
addBase64: function (key, data)
233235
{
@@ -255,6 +257,8 @@ var TextureManager = new Class({
255257

256258
image.src = data;
257259
}
260+
261+
return this;
258262
},
259263

260264
/**

0 commit comments

Comments
 (0)