Sha256: 69da92af440ae3f522e7294876ed2bae234447ee564d1619c9f69d53e1020a8a
Contents?: true
Size: 716 Bytes
Versions: 11
Compression:
Stored size: 716 Bytes
Contents
;(function(document, window) { // jQuery is optional. Use it to support legacy browsers. var $ = (typeof window.jQuery !== 'undefined') && window.jQuery; window.ReactRailsUJS.Native = { // Attach handlers to browser events to mount & unmount components setup: function() { if ($) { $(function() {window.ReactRailsUJS.mountComponents()}); } else if ('addEventListener' in window) { document.addEventListener('DOMContentLoaded', function() {window.ReactRailsUJS.mountComponents()}); } else { // add support to IE8 without jQuery window.attachEvent('onload', function() {window.ReactRailsUJS.mountComponents()}); } } }; })(document, window);
Version data entries
11 entries across 11 versions & 1 rubygems