Skip to content

Commit

Permalink
Clarified event triggering.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Wolf committed Nov 4, 2016
1 parent 601614f commit 9e56f27
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions assets/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ jQuery( function() {

if( typeof( strMapID ) != 'undefined' && strMapID != '' && typeof( config ) == 'object' ) {
// fire custom init event
jQuery( document ).trigger( '_ui_leaflet_map_init' );
jQuery( document ).trigger( '_ui_leaflet_map_init' ); // base event

jQuery( document ).trigger( '_ui_leaflet_map_init__' + strMapID ); // custom map id



Expand Down Expand Up @@ -103,8 +105,9 @@ jQuery( function() {

}
}
jQuery( document ).trigger( '_ui_leaflet_map_loaded' ); // base event

jQuery( document ).trigger( '_ui_leaflet_map_loaded' );
jQuery( document ).trigger( '_ui_leaflet_map_loaded__' + strMapID );
}
})
}
Expand Down

0 comments on commit 9e56f27

Please sign in to comment.