File "range.js"

Full Path: /home/jlklyejr/public_html/wp-content/test/wp-content/plugins/meta-box/js/range.js
File size: 458 bytes
MIME-type: text/plain
Charset: utf-8

( function ( $, rwmb ) {
	'use strict';

	/**
	 * Update text value.
	 */
	function update() {
		var $this = $( this ),
			$output = $this.siblings( '.rwmb-range-output' );

		$this.on( 'input propertychange change', function () {
			$output.html( $this.val() );
		} );
	}

	function init( e ) {
		$( e.target ).find( '.rwmb-range' ).each( update );
	}

	rwmb.$document
		.on( 'mb_ready', init )
		.on( 'clone', '.rwmb-range', update );
} )( jQuery, rwmb );