Closed srikanthpagadala closed 12 years ago
Can you do these changes and provide a pull request? Would be highly appreciated. I read that you did the changes locally for you.
Daniel, I have never done a pull request, but am willing to learn and try. give me few days to let you know if i can commit to doing it.
if you already compiled xtk, you can def. do it!!
dude, the pull request didn't work - I had to revert.. please try the compilation and the code before submitting again..
Stuff like this:
X/visualization/renderer2D.js:423: ERROR - Parse error. missing ) after condition
if (goog.isDefAndNotNull(file) && goog.isArray(file) { ^
/net/pretoria/local_mount/space/pretoria/2/chb/users/daniel.haehn/Projects/X2/visualization/renderer3D.js:576: ERROR - Parse error. missing ) after condition } else if (goog.isDefAndNotNull(file) && goog.isArray(file) {
sorry! let me try again.
On Wed, Aug 29, 2012 at 9:01 AM, Daniel Haehn notifications@github.comwrote:
/net/pretoria/local_mount/space/pretoria/2/chb/users/daniel.haehn/Projects/X2/visualization/renderer3D.js:576: ERROR - Parse error. missing ) after condition } else if (goog.isDefAndNotNull(file) && goog.isArray(file) {
— Reply to this email directly or view it on GitHubhttps://github.com/xtk/X/issues/91#issuecomment-8130223.
All works fine now! Thank you!!!
XTK codebase checks for instanceof Arrays like this -> "color instanceof Array". More appropriate way would be -> "goog.isArray(color)".
This bug was found when using XTK with GWT.
More detailed discusion about this bug can be found on this stackoverflow thread
http://stackoverflow.com/questions/11076872/simple-color-assignment-not-working-in-xtk-with-gwt-mesh-color-0-7-0-0
Thank you.