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