mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2025-02-21 14:10:39 +03:00
fix 1143: remove references to $document (#1147)
This commit is contained in:
parent
e0852fc254
commit
72003f7988
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -9,6 +9,9 @@ _site
|
||||||
docs/.jekyll-metadata
|
docs/.jekyll-metadata
|
||||||
docs/dist
|
docs/dist
|
||||||
|
|
||||||
|
# IDE specific
|
||||||
|
.idea
|
||||||
|
|
||||||
*.log
|
*.log
|
||||||
.sass-cache
|
.sass-cache
|
||||||
Thumbs.db
|
Thumbs.db
|
||||||
|
|
|
@ -295,7 +295,6 @@
|
||||||
},
|
},
|
||||||
"init": function (options) {
|
"init": function (options) {
|
||||||
this.options = $.extend({}, this.options, options);
|
this.options = $.extend({}, this.options, options);
|
||||||
var $document = $(document);
|
|
||||||
|
|
||||||
if ($.fn.ripples && this.options.ripples) {
|
if ($.fn.ripples && this.options.ripples) {
|
||||||
this.ripples();
|
this.ripples();
|
||||||
|
@ -320,27 +319,27 @@
|
||||||
|
|
||||||
if (document.arrive && this.options.arrive) {
|
if (document.arrive && this.options.arrive) {
|
||||||
if ($.fn.ripples && this.options.ripples) {
|
if ($.fn.ripples && this.options.ripples) {
|
||||||
$document.arrive(this.options.withRipples, function () {
|
document.arrive(this.options.withRipples, function () {
|
||||||
$.material.ripples($(this));
|
$.material.ripples($(this));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (this.options.input) {
|
if (this.options.input) {
|
||||||
$document.arrive(this.options.inputElements, function () {
|
document.arrive(this.options.inputElements, function () {
|
||||||
$.material.input($(this));
|
$.material.input($(this));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (this.options.checkbox) {
|
if (this.options.checkbox) {
|
||||||
$document.arrive(this.options.checkboxElements, function () {
|
document.arrive(this.options.checkboxElements, function () {
|
||||||
$.material.checkbox($(this));
|
$.material.checkbox($(this));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (this.options.radio) {
|
if (this.options.radio) {
|
||||||
$document.arrive(this.options.radioElements, function () {
|
document.arrive(this.options.radioElements, function () {
|
||||||
$.material.radio($(this));
|
$.material.radio($(this));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (this.options.togglebutton) {
|
if (this.options.togglebutton) {
|
||||||
$document.arrive(this.options.togglebuttonElements, function () {
|
document.arrive(this.options.togglebuttonElements, function () {
|
||||||
$.material.togglebutton($(this));
|
$.material.togglebutton($(this));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user