Skip to content

Commit e588ff5

Browse files
committed
Added Texture.has(frame) check
1 parent 4314fb0 commit e588ff5

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

v3/src/textures/Texture.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ Texture.prototype = {
8383
return frame;
8484
},
8585

86+
has: function (name)
87+
{
88+
return (this.frames[name]);
89+
},
90+
8691
get: function (name)
8792
{
8893
if (name === undefined || name === null)

0 commit comments

Comments
 (0)