- Help -> Install New Software
- Add this: http://github.eclipsesource.com/jshint-eclipse/updates/
- Install JSHint. Studio will restart.
After successfull install, right click on your project:
- Properties:
| //from line 502 | |
| -(void)setRightNavButton:(id)proxy withObject:(id)properties | |
| { | |
| ENSURE_UI_THREAD_WITH_OBJ(setRightNavButton,proxy,properties); | |
| if (properties == nil) { | |
| properties = [self valueForKey:@"rightNavSettings"]; | |
| } | |
| else { | |
| [self setValue:properties forKey:@"rightNavSettings"]; |
| { | |
| "bitwise": true, | |
| "camelcase": true, | |
| "eqeqeq": true, | |
| "indent": 4, | |
| "unused": true, | |
| "onevar": true, | |
| "undef": true, | |
| "trailing": true, | |
| "latedef": true, |
After successfull install, right click on your project:
| function showgallery(){ | |
| Titanium.Media.openPhotoGallery({ | |
| success:function(event){ | |
| var cropRect = event.cropRect; | |
| var image = event.media; | |
| Ti.API.debug('Our type was: '+event.mediaType); | |
| if(event.mediaType == Ti.Media.MEDIA_TYPE_PHOTO){ | |
| var uri = image.nativePath; | |
| # This command will make sure the process persists | |
| # even after you log out of a session | |
| node server.js >/dev/null 2>&1 & |
| { | |
| "bitwise": true, | |
| "camelcase": true, | |
| "eqeqeq": true, | |
| "indent": 4, | |
| "unused": true, | |
| "onevar": true, | |
| "undef": true, | |
| "trailing": true, | |
| "latedef": true, |