Prioritize sourceHandler over dataLocker
This commit is contained in:
parent
4fa00f1c7b
commit
88fba61a78
|
|
@ -73,6 +73,12 @@
|
|||
if (this.options.data) {
|
||||
handsontableOptions.data = this.options.data
|
||||
}
|
||||
/*
|
||||
* Data from an AJAX data source
|
||||
*/
|
||||
else if (this.options.sourceHandler) {
|
||||
self.refreshDataSource()
|
||||
}
|
||||
/*
|
||||
* Data from a data locker
|
||||
*/
|
||||
|
|
@ -96,12 +102,6 @@
|
|||
delete handsontableOptions.data
|
||||
}
|
||||
}
|
||||
/*
|
||||
* Data from an AJAX data source
|
||||
*/
|
||||
else if (this.options.sourceHandler) {
|
||||
self.refreshDataSource()
|
||||
}
|
||||
|
||||
/*
|
||||
* Monitor for data changes
|
||||
|
|
@ -454,4 +454,4 @@
|
|||
Handsontable.PluginHooks.add('afterUpdateSettings', function () {
|
||||
init.call(this)
|
||||
});
|
||||
})(Handsontable, jQuery);
|
||||
})(Handsontable, jQuery);
|
||||
|
|
|
|||
Loading…
Reference in New Issue