A few performance improvements for events with a large number of fields

This commit is contained in:
Rashid Khan
2013-10-23 22:11:07 -07:00
parent 40e55f0d0d
commit a17e8ea469
4 changed files with 15 additions and 22 deletions
+1
View File
@@ -21,6 +21,7 @@ function (angular, _, config) {
var indices = _.difference(n,_.keys(self.mapping));
// Only get the mapping if there are new indices
if(indices.length > 0) {
console.log('getting mapping');
self.map(indices).then(function(result) {
self.mapping = _.extend(self.mapping,result);
self.list = mapFields(self.mapping);