diff --git a/.gitignore b/.gitignore index 09ae2fa8..61a085f6 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,9 @@ _site docs/.jekyll-metadata docs/dist +# IDE specific +.idea + *.log .sass-cache Thumbs.db diff --git a/scripts/material.js b/scripts/material.js index 819152e1..e234c208 100644 --- a/scripts/material.js +++ b/scripts/material.js @@ -295,7 +295,6 @@ }, "init": function (options) { this.options = $.extend({}, this.options, options); - var $document = $(document); if ($.fn.ripples && this.options.ripples) { this.ripples(); @@ -320,27 +319,27 @@ if (document.arrive && this.options.arrive) { if ($.fn.ripples && this.options.ripples) { - $document.arrive(this.options.withRipples, function () { + document.arrive(this.options.withRipples, function () { $.material.ripples($(this)); }); } if (this.options.input) { - $document.arrive(this.options.inputElements, function () { + document.arrive(this.options.inputElements, function () { $.material.input($(this)); }); } if (this.options.checkbox) { - $document.arrive(this.options.checkboxElements, function () { + document.arrive(this.options.checkboxElements, function () { $.material.checkbox($(this)); }); } if (this.options.radio) { - $document.arrive(this.options.radioElements, function () { + document.arrive(this.options.radioElements, function () { $.material.radio($(this)); }); } if (this.options.togglebutton) { - $document.arrive(this.options.togglebuttonElements, function () { + document.arrive(this.options.togglebuttonElements, function () { $.material.togglebutton($(this)); }); }