Skip to content

Commit

Permalink
Fix for jquery checking solution for webpack and fixes for meteor
Browse files Browse the repository at this point in the history
  • Loading branch information
Dogfalo committed Aug 26, 2017
1 parent 1170d26 commit e959765
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion js/initial.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Check for jQuery.
if (typeof(jQuery) === 'undefined') {
var jQuery;
// Check if require is a defined function.
if (typeof(require) === 'function') {
jQuery = $ = require('jquery');
Expand Down
2 changes: 1 addition & 1 deletion js/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@
*/
Modal._count = 0;

window.Materialize.Modal = Modal;
Materialize.Modal = Modal;

$.fn.modal = function(methodOrOptions) {
// Call plugin method if valid method name is passed in
Expand Down
6 changes: 3 additions & 3 deletions js/toasts.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,8 @@
*/
Toast._draggedToast = null;

window.Materialize.Toast = Toast;
window.Materialize.toast = function(message, displayLength, className, completeCallback) {
Materialize.Toast = Toast;
Materialize.toast = function(message, displayLength, className, completeCallback) {
return new Toast(message, displayLength, className, completeCallback);
}
};
})(jQuery, Materialize.Vel);

0 comments on commit e959765

Please sign in to comment.