Prioritize sourceHandler over dataLocker

This commit is contained in:
flynsarmy 2014-07-30 15:17:28 +10:00
parent 4fa00f1c7b
commit 88fba61a78
1 changed files with 7 additions and 7 deletions

View File

@ -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);