mirror of
				https://github.com/mdbootstrap/mdb-ui-kit.git
				synced 2025-11-04 09:57:36 +03:00 
			
		
		
		
	cache $(document)
This commit is contained in:
		
							parent
							
								
									3ae84b8b78
								
							
						
					
					
						commit
						e249aa948a
					
				| 
						 | 
				
			
			@ -177,6 +177,8 @@
 | 
			
		|||
      });
 | 
			
		||||
    },
 | 
			
		||||
    "init": function() {
 | 
			
		||||
      var $document = $(document);
 | 
			
		||||
      
 | 
			
		||||
      if ($.fn.ripples && this.options.ripples) {
 | 
			
		||||
        this.ripples();
 | 
			
		||||
      }
 | 
			
		||||
| 
						 | 
				
			
			@ -198,27 +200,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));
 | 
			
		||||
          });
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user