Sha256: 9297e56157f6289bd420d2b04af2d8c8cee1f08d7ce5b172bb0a388c44284e80

Contents?: true

Size: 324 Bytes

Versions: 64

Compression:

Stored size: 324 Bytes

Contents

(() => {
  // Declares a `document.ready` handler that will be
  // activated only when there is at least one element that match
  // the given selector
	mumuki.onInputsReady = (inputsSelector, callback) => {
		$(document).ready((event) => {
			if ($(inputsSelector).length === 0) return;

			callback(event);
		})
	}
})();

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
mumuki-laboratory-7.7.6 app/assets/javascripts/mumuki_laboratory/application/inputs.js
mumuki-laboratory-7.7.5 app/assets/javascripts/mumuki_laboratory/application/inputs.js
mumuki-laboratory-7.7.4 app/assets/javascripts/mumuki_laboratory/application/inputs.js
mumuki-laboratory-7.7.3 app/assets/javascripts/mumuki_laboratory/application/inputs.js
mumuki-laboratory-7.7.2 app/assets/javascripts/mumuki_laboratory/application/inputs.js
mumuki-laboratory-7.7.1 app/assets/javascripts/mumuki_laboratory/application/inputs.js
mumuki-laboratory-7.7.0 app/assets/javascripts/mumuki_laboratory/application/inputs.js
mumuki-laboratory-7.6.2 app/assets/javascripts/mumuki_laboratory/application/inputs.js
mumuki-laboratory-7.6.1 app/assets/javascripts/mumuki_laboratory/application/inputs.js
mumuki-laboratory-7.6.0 app/assets/javascripts/mumuki_laboratory/application/inputs.js
mumuki-laboratory-7.5.2 app/assets/javascripts/mumuki_laboratory/application/inputs.js
mumuki-laboratory-7.5.1 app/assets/javascripts/mumuki_laboratory/application/inputs.js
mumuki-laboratory-7.5.0 app/assets/javascripts/mumuki_laboratory/application/inputs.js
mumuki-laboratory-7.4.2 app/assets/javascripts/mumuki_laboratory/application/inputs.js
mumuki-laboratory-7.4.1 app/assets/javascripts/mumuki_laboratory/application/inputs.js
mumuki-laboratory-7.4.0 app/assets/javascripts/mumuki_laboratory/application/inputs.js
mumuki-laboratory-7.3.1 app/assets/javascripts/mumuki_laboratory/application/inputs.js
mumuki-laboratory-7.3.0 app/assets/javascripts/mumuki_laboratory/application/inputs.js
mumuki-laboratory-7.2.0 app/assets/javascripts/mumuki_laboratory/application/inputs.js
mumuki-laboratory-7.1.0 app/assets/javascripts/mumuki_laboratory/application/inputs.js