diff --git a/index.html b/index.html
index 575023e..67511e2 100644
--- a/index.html
+++ b/index.html
@@ -188,7 +188,7 @@
<button class="magicBtn icon"><i class="icon-search"></i></button>
<button class="magicBtn icon"><i class="icon-user"></i></button>
- $('.icon').magicBtn({hover: true, alignement: 'top'});
$('.icon').magicBtn('show');
+ $('.icon').magicBtn({hover: true, alignment: 'top'});
$('.icon').magicBtn('show');
@@ -223,7 +223,7 @@
- alignement |
+ alignment |
string |
center |
start showing buttons from center, 1 in middle, even on ones top and odd ones on bottom |
@@ -276,13 +276,13 @@
$('.hover').magicBtn({hover: true});
$('.hover').magicBtn('show');
- $('.icon').magicBtn({hover: true, alignement: 'top'});
+ $('.icon').magicBtn({hover: true, alignment: 'top'});
$('.icon').magicBtn('show');
$('.well .magicBtn').magicBtn('show');
- $('.hero').magicBtn({hover: true, alignement: 'top'});
+ $('.hero').magicBtn({hover: true, alignment: 'top'});
$('.hero-unit').hoverIntent({
over: function () {
$('.hero').magicBtn('show');
diff --git a/js/bootstrap-magic-button.js b/js/bootstrap-magic-button.js
index 7c31851..ecf3286 100644
--- a/js/bootstrap-magic-button.js
+++ b/js/bootstrap-magic-button.js
@@ -87,7 +87,7 @@ function ($) {
calculatePosition: function (direction) {
var space = (this.$currentBtnNb === 1) ? 0 : this.options.betweenSpace
var left = this.$parentPosition.left + this.$parentWidth
- switch (this.options.alignement) {
+ switch (this.options.alignment) {
case 'top':
this.$top = (
(this.$currentBtnNb * this.$height) - this.$height + this.$parentPosition.top + (space * (this.$currentBtnNb - 1)))
@@ -187,7 +187,7 @@ function ($) {
$.fn.magicBtn.defaults = {
direction: 'right',
betweenSpace: 2,
- alignement: 'center',
+ alignment: 'center',
hover: false
}