Skip to content

Commit

Permalink
Add editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Mar 10, 2017
1 parent cc52925 commit 45a70b8
Show file tree
Hide file tree
Showing 19 changed files with 27 additions and 19 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
2 changes: 1 addition & 1 deletion src/js/amd.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ else if (typeof define === 'function' && define.amd) {
'use strict';
return window.Swiper;
});
}
}
2 changes: 1 addition & 1 deletion src/js/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,4 @@ s.controller = {
setControlledTransition(controlled);
}
}
};
};
2 changes: 1 addition & 1 deletion src/js/dom-plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ if (domLib) {
else return null;
};
}
}
}
2 changes: 1 addition & 1 deletion src/js/effects.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,4 +273,4 @@ s.effects = {
s.slides.transition(duration).find('.swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left').transition(duration);
}
}
};
};
2 changes: 1 addition & 1 deletion src/js/emitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ s.once = function (eventName, handler) {
};
s.on(eventName, _handler);
return s;
};
};
2 changes: 1 addition & 1 deletion src/js/get-dom-lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ if (typeof Dom7 === 'undefined') {
}
else {
domLib = Dom7;
}
}
3 changes: 1 addition & 2 deletions src/js/get-jquery.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*===========================
Get jQuery
===========================*/

addLibraryPlugin($);

var domLib = $;
var domLib = $;
2 changes: 1 addition & 1 deletion src/js/hashnav.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ s.hashnav = {
destroy: function () {
if (s.params.hashnavWatchState) s.hashnav.attachEvents(true);
}
};
};
2 changes: 1 addition & 1 deletion src/js/history.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ s.history = {
s.slideTo(0, speed, runCallbacks);
}
}
};
};
2 changes: 1 addition & 1 deletion src/js/mousewheel.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,4 +313,4 @@ function normalizeWheel( /*object*/ event ) /*object*/ {
pixelX: pX,
pixelY: pY
};
}
}
2 changes: 1 addition & 1 deletion src/js/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ s.callPlugins = function (eventName) {
s._plugins[i][eventName](arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]);
}
}
};
};
2 changes: 1 addition & 1 deletion src/js/scrollbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,4 +182,4 @@ s.scrollbar = {
if (!s.params.scrollbar) return;
s.scrollbar.drag.transition(duration);
}
};
};
2 changes: 1 addition & 1 deletion src/js/swiper-intro-f7.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Swiper
===========================*/
window.Swiper = function (container, params) {
if (!(this instanceof Swiper)) return new Swiper(container, params);
if (!(this instanceof Swiper)) return new Swiper(container, params);
2 changes: 1 addition & 1 deletion src/js/swiper-intro.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Swiper
===========================*/
var Swiper = function (container, params) {
if (!(this instanceof Swiper)) return new Swiper(container, params);
if (!(this instanceof Swiper)) return new Swiper(container, params);
2 changes: 1 addition & 1 deletion src/js/wrap-end-umd.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
return Swiper;
}));
}));
2 changes: 1 addition & 1 deletion src/js/wrap-end.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
window.Swiper = Swiper;
})();
})();
2 changes: 1 addition & 1 deletion src/js/wrap-start.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
(function () {
'use strict';
var $;
var $;
2 changes: 1 addition & 1 deletion src/js/zoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,4 +359,4 @@ s.zoom = {
destroy: function () {
s.zoom.attachEvents(true);
}
};
};

0 comments on commit 45a70b8

Please sign in to comment.