Skip to content

Commit e959765

Browse files
committed
Fix for jquery checking solution for webpack and fixes for meteor
1 parent 1170d26 commit e959765

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

js/initial.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Check for jQuery.
22
if (typeof(jQuery) === 'undefined') {
3-
var jQuery;
43
// Check if require is a defined function.
54
if (typeof(require) === 'function') {
65
jQuery = $ = require('jquery');

js/modal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@
341341
*/
342342
Modal._count = 0;
343343

344-
window.Materialize.Modal = Modal;
344+
Materialize.Modal = Modal;
345345

346346
$.fn.modal = function(methodOrOptions) {
347347
// Call plugin method if valid method name is passed in

js/toasts.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,8 @@
313313
*/
314314
Toast._draggedToast = null;
315315

316-
window.Materialize.Toast = Toast;
317-
window.Materialize.toast = function(message, displayLength, className, completeCallback) {
316+
Materialize.Toast = Toast;
317+
Materialize.toast = function(message, displayLength, className, completeCallback) {
318318
return new Toast(message, displayLength, className, completeCallback);
319-
}
319+
};
320320
})(jQuery, Materialize.Vel);

0 commit comments

Comments
 (0)