Skip to content

Commit 70356be

Browse files
committed
Code formating
1 parent a703b35 commit 70356be

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

js/jquery.mapael.js

+10-10
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050
// the global options
5151
self.options = self.extendDefaultOptions(options);
52-
52+
5353
// Save initial HTML content (used by destroy method)
5454
self.initialHTMLContent = self.$container.html();
5555

@@ -115,10 +115,10 @@
115115
* Each mapael object inherits their properties and methods from this prototype
116116
*/
117117
Mapael.prototype = {
118-
118+
119119
/*
120120
* Version number
121-
*/
121+
*/
122122
version: version,
123123

124124
/*
@@ -236,20 +236,20 @@
236236

237237
$(self.paper.desc).append(" and Mapael " + self.version + " (http://www.vincentbroute.fr/mapael/)");
238238
},
239-
239+
240240
/*
241241
* Destroy mapael
242242
* This function effectively detach mapael from the container
243243
* - Set the container back to the way it was before mapael instanciation
244244
* - Remove all data associated to it (memory can then be free'ed by browser)
245-
*
245+
*
246246
* This method can be call directly by user:
247247
* $(".mapcontainer").data("mapael").destroy();
248-
*
248+
*
249249
* This method is also automatically called if the user try to call mapael
250250
* on a container already containing a mapael instance
251251
*/
252-
destroy: function() {
252+
destroy: function () {
253253
var self = this;
254254
// Empty the container (this will also detach all event listeners)
255255
self.$container.empty();
@@ -274,15 +274,15 @@
274274
self.links = undefined;
275275
},
276276

277-
handleMapResizing: function() {
277+
handleMapResizing: function () {
278278
var self = this;
279279
// Create the legends for plots taking into account the scale of the map
280280
var createPlotLegend = function () {
281281
self.createLegends("plot", self.plots, (self.$map.width() / self.mapConf.width));
282282

283283
self.$map.off("resizeEnd." + pluginName, createPlotLegend);
284284
};
285-
285+
286286
// onResizeEvent: call when the window element trigger the resize event
287287
// We create it inside this function (and not in the prototype) in order to have a closure
288288
// Otherwise, in the prototype, 'this' when triggered is *not* the mapael object but the global window
@@ -295,7 +295,7 @@
295295
}, 150);
296296
};
297297

298-
// Attach resize handler
298+
// Attach resize handler
299299
$(window).on("resize." + pluginName, self.onResizeEvent);
300300

301301
self.$map.on("resizeEnd." + pluginName, function () {

0 commit comments

Comments
 (0)