fix
parent
820e44dd20
commit
de5e80b80a
|
@ -794,8 +794,15 @@ GameLib.Utils.LowerUnderscore = function(name) {
|
|||
return name.toLowerCase().replace(/\s+/, '_');
|
||||
};
|
||||
|
||||
GameLib.Utils.UpperCaseWordsSpaces = function(word) {
|
||||
return word.replace(/[-_]/g, ' ').split(' ').reduce(
|
||||
GameLib.Utils.UpperCaseWordsSpaces = function(input) {
|
||||
|
||||
var word = input.replace(/[-_]/g, ' ');
|
||||
|
||||
word = word.replace(/\s+/, ' ');
|
||||
|
||||
var words = word.split(' ');
|
||||
|
||||
return words.reduce(
|
||||
function(result, word) {
|
||||
result += word[0].toUpperCase() + word.substr(1);
|
||||
return result + ' ';
|
||||
|
|
|
@ -286,6 +286,7 @@ GameLib.D3.Texture.prototype.updateInstance = function(property) {
|
|||
|
||||
if (property === 'flipY') {
|
||||
this.instance.flipY = this.flipY;
|
||||
this.instance.needsUpdate = true;
|
||||
}
|
||||
|
||||
if (property === 'encoding') {
|
||||
|
|
Loading…
Reference in New Issue