Montage is an elegant, open source HTML5 framework maintained by Montage Studio that rivals native SDKs, yet is easier to learn. It offers modular components, two-way data binding, and much more. Join us on irc.freenode.net#montage. Sign up for our beta to build Montage applications in the cloud.
If this.offlineService is undefined, tableSchema and foreignKeys will not be set in the first conditional. That forces the code to throw in the second condition. !foreignKeys is true so the code enters the block and tableSchema is necessarily undefined.
The logic of the following section of
DataService. _performAndDeleteOfflineOperation
is logically inconsistent.https://github.com/montagejs/montage/blob/master/data/service/data-service.js#L2395-L2404
If
this.offlineService
isundefined
,tableSchema
andforeignKeys
will not be set in the first conditional. That forces the code to throw in the second condition.!foreignKeys
is true so the code enters the block andtableSchema
is necessarilyundefined
.