[ALOY-1116] optimize sync adapter, per pull 518

Resolves https://jira.appcelerator.org/browse/ALOY-1116

Implements PR #518 with correction to typo