diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index acd4e76371..9f1d8e36ac 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,4 +1,4 @@ - + When asking general "how to" questions: diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f84fb5d15..13e23e60f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,7 +16,7 @@ Bolded styling surrounded by emojis indicates a breaking change. - Now correctly removes all event listeners on destroy - Materialbox - - Destroy now removed wrapper element added during intialization + - Destroy now removed wrapper element added during initialization - Pushpin - Fixed bug on IE11 where class was not removed properly @@ -176,7 +176,7 @@ Bolded styling surrounded by emojis indicates a breaking change. - Datepicker - Fixed date format option - - Scrollbar no longer unecessarily appears when using datepicker + - Scrollbar no longer unnecessarily appears when using datepicker - Fixed bug where using month and year selectors didn't change date - Dropdown diff --git a/extras/noUiSlider/nouislider.js b/extras/noUiSlider/nouislider.js index 3cf9939e03..4a42783227 100644 --- a/extras/noUiSlider/nouislider.js +++ b/extras/noUiSlider/nouislider.js @@ -65,7 +65,7 @@ typeof b&&isFinite(b)?b:!1}function x(b){var f,c,d,e={};for(f=0;f -
+

Initialization


   document.addEventListener('DOMContentLoaded', function() {
@@ -423,7 +423,7 @@ 
Popout
Introduction
  • - Initialization + Initialization
  • Options diff --git a/jade/page-contents/floating-action-button-content.html b/jade/page-contents/floating-action-button-content.html index c91ae65986..bcb28d240e 100644 --- a/jade/page-contents/floating-action-button-content.html +++ b/jade/page-contents/floating-action-button-content.html @@ -314,7 +314,7 @@

    FAB to Toolbar

    Introduction
  • - Intialization + Initialization
  • Options diff --git a/jade/page-contents/modals_content.html b/jade/page-contents/modals_content.html index f245668368..41362c2bf0 100644 --- a/jade/page-contents/modals_content.html +++ b/jade/page-contents/modals_content.html @@ -145,7 +145,7 @@

    Initialization

    Options

    You can customize the behavior of each modal using these options. For example, you can call a custom function to - run when a modal is dismissed. To do this, just place your function in the intialization code as shown below.

    + run when a modal is dismissed. To do this, just place your function in the initialization code as shown below.

    @@ -370,7 +370,7 @@

    Bottom Sheet Modals

    Button Trigger
  • - Intialization + Initialization
  • Options diff --git a/jade/page-contents/parallax_content.html b/jade/page-contents/parallax_content.html index aedb6fed8c..7de0bda4f6 100644 --- a/jade/page-contents/parallax_content.html +++ b/jade/page-contents/parallax_content.html @@ -143,7 +143,7 @@

    Parallax Customization

    Introduction
  • - Intialization + Initialization
  • Options diff --git a/jade/page-contents/scrollspy_content.html b/jade/page-contents/scrollspy_content.html index 92f5734c28..1b4f0de423 100644 --- a/jade/page-contents/scrollspy_content.html +++ b/jade/page-contents/scrollspy_content.html @@ -30,7 +30,7 @@ <ul class="section table-of-contents"> <li><a href="#introduction">Introduction</a></li> <li><a href="#structure">Structure</a></li> - <li><a href="#initialization">Intialization</a></li> + <li><a href="#initialization">Initialization</a></li> </ul> </div> </div> @@ -174,7 +174,7 @@

    Properties

    Introduction
  • - Intialization + Initialization
  • Options diff --git a/jade/page-contents/sidenav_content.html b/jade/page-contents/sidenav_content.html index 498213b72b..ae10a8b9d2 100644 --- a/jade/page-contents/sidenav_content.html +++ b/jade/page-contents/sidenav_content.html @@ -368,7 +368,7 @@

    Fixed HTML Structure

    Structure
  • - Intialization + Initialization
  • Options diff --git a/jade/page-contents/tabs_content.html b/jade/page-contents/tabs_content.html index 6e2567f972..f42a265873 100644 --- a/jade/page-contents/tabs_content.html +++ b/jade/page-contents/tabs_content.html @@ -188,7 +188,7 @@

    Properties

  • - + @@ -293,7 +293,7 @@

    Fixed Width Tabs

    • Introduction
    • Structure
    • -
    • Intialization
    • +
    • Initialization
    • Methods
    • Options
    • Properties
    • diff --git a/jade/page-contents/toasts_content.html b/jade/page-contents/toasts_content.html index 66aa04553e..1b5ee48c0c 100644 --- a/jade/page-contents/toasts_content.html +++ b/jade/page-contents/toasts_content.html @@ -5,7 +5,7 @@

      Materialize provides an easy way for you to send unobtrusive alerts to your users through toasts. These toasts are also placed and sized responsively, try it out by clicking the button below on different device sizes.

      Toast! -

      To do this, call the M.toast() function programatically in JavaScript.

      +

      To do this, call the M.toast() function programmatically in JavaScript.

      
         M.toast({html: 'I am a toast!'})
               
      @@ -150,7 +150,7 @@

      Styling Toasts

      -

      Dismiss a Toast Programatically

      +

      Dismiss a Toast Programmatically

      To remove a specific toast using JavaScript, access the M_Toast toast HTML element and call the dismiss function

      
      diff --git a/jade/page-contents/waves_content.html b/jade/page-contents/waves_content.html
      index ec9cf61070..24dbcca7bc 100644
      --- a/jade/page-contents/waves_content.html
      +++ b/jade/page-contents/waves_content.html
      @@ -29,7 +29,7 @@ 

      Customization

      Available Colors
      -

      To use these, just add the corresponding class to your button. Play around with changing the background color of butons and the waves effect to create something cool!

      +

      To use these, just add the corresponding class to your button. Play around with changing the background color of buttons and the waves effect to create something cool!

      
         <a href="#!" class="btn waves-effect waves-teal">Send</a>
                 
      diff --git a/js/dropdown.js b/js/dropdown.js index 5fd0d98668..be22bfe6cd 100644 --- a/js/dropdown.js +++ b/js/dropdown.js @@ -527,7 +527,7 @@ * Place dropdown */ _placeDropdown() { - // Countainer here will be closest ancestor with overflow: hidden + // Container here will be closest ancestor with overflow: hidden let closestOverflowParent = M.getClosestAncestor(this.dropdownEl, (ancestor) => { return $(ancestor).css('overflow') !== 'visible'; }); diff --git a/js/select.js b/js/select.js index 63f7d8303c..2aeb08cf50 100644 --- a/js/select.js +++ b/js/select.js @@ -272,7 +272,7 @@ } }; - // Prevent dropdown from closeing too early + // Prevent dropdown from closing too early dropdownOptions.closeOnClick = false; this.dropdown = M.Dropdown.init(this.input, dropdownOptions); diff --git a/js/sidenav.js b/js/sidenav.js index 4a88dd3901..a466f1b328 100644 --- a/js/sidenav.js +++ b/js/sidenav.js @@ -181,7 +181,7 @@ } /** - * Set variables needed at the beggining of drag + * Set variables needed at the beginning of drag * and stop any current transition. * @param {Event} e */ diff --git a/js/waves.js b/js/waves.js index ae2cdcb6b3..8ff6bd27d5 100644 --- a/js/waves.js +++ b/js/waves.js @@ -70,7 +70,7 @@ ripple.className = 'waves-ripple'; el.appendChild(ripple); - // Get click coordinate and element witdh + // Get click coordinate and element width var pos = offset(el); var relativeY = (e.pageY - pos.top); var relativeX = (e.pageX - pos.left); @@ -138,7 +138,7 @@ var relativeY = ripple.getAttribute('data-y'); var scale = ripple.getAttribute('data-scale'); - // Get delay beetween mousedown and mouse leave + // Get delay between mousedown and mouse leave var diff = Date.now() - Number(ripple.getAttribute('data-hold')); var delay = 350 - diff; diff --git a/sass/components/_grid.scss b/sass/components/_grid.scss index 8892f0503a..0ff13cfe23 100644 --- a/sass/components/_grid.scss +++ b/sass/components/_grid.scss @@ -34,7 +34,7 @@ } -// Mixins to eliminate code repitition +// Mixins to eliminate code repetition @mixin reset-offset { margin-left: auto; left: auto; diff --git a/sass/components/_sidenav.scss b/sass/components/_sidenav.scss index 2b22ffe886..bd03c5db82 100644 --- a/sass/components/_sidenav.scss +++ b/sass/components/_sidenav.scss @@ -62,7 +62,7 @@ } } - // Stlye btn anchors + // Style btn anchors li > .btn, li > .btn-large, li > .btn-flat, li > .btn-floating { margin: 10px ($sidenav-padding * 2); } diff --git a/v1-changelog.md b/v1-changelog.md index 14f57906e6..95189c229f 100644 --- a/v1-changelog.md +++ b/v1-changelog.md @@ -1,6 +1,6 @@ ## Auto Init -- Componenets are no longer initialized automatically on document load by Materialize -- Added function `M.AutoInit()` that initializes all componenets +- Components are no longer initialized automatically on document load by Materialize +- Added function `M.AutoInit()` that initializes all components ## Autocomplete - Added sort function to order completion results
    options ObjectThe options the instance was initalized with.The options the instance was initialized with.
    index