Skip to content

Commit

Permalink
Launch load event when it is fully loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
donflopez committed Apr 20, 2017
1 parent 9db7d49 commit 32e2fb7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/vis/vis.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,6 @@ var VisModel = Backbone.Model.extend({
}
// Global variable for easier console debugging / testing
window.vis = this;

_.defer(function () {
this.trigger('load', this);
}.bind(this));
},

// we provide a method to set some new settings
Expand Down Expand Up @@ -321,6 +317,7 @@ var VisModel = Backbone.Model.extend({
whenAllDataviewsFetched(this._dataviewsCollection, this._onDataviewFetched.bind(this));
this._initBindsAfterFirstMapInstantiation();

this.trigger('load');
anyDataviewFiltered && this.reload({ includeFilters: anyDataviewFiltered });
},

Expand Down

0 comments on commit 32e2fb7

Please sign in to comment.