stimulus_reflex 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of stimulus_reflex might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +3 -3
- data/lib/stimulus_reflex/version.rb +1 -1
- data/vendor/assets/javascripts/stimulus_reflex.js +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c37059ad37807d6c742c59bf9e3c6d52a57326d88041f12c5d49eacbe6721e63
|
4
|
+
data.tar.gz: 9bf0943ec2bb6d987a05d33f85417db38b6ffa1b766c458b9f90b7bda226b59b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb356c984aca6b7729af7b4d2097e80fbb961ce2f9e77b35ca088a40f48ca35417d1527a86a56edd2d06013eac3bac4d8e3f975657b073988191a0d90733f796
|
7
|
+
data.tar.gz: 4532896ca95f7263e1853c486c981d5e1ea398016cd52e6b80d255c385788ab86ca3a587395f8deaf1578a82cd322b4f789442b135322fa3bce6e3cbbc4f69ea
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
[![Lines of Code](http://img.shields.io/badge/lines_of_code-
|
1
|
+
[![Lines of Code](http://img.shields.io/badge/lines_of_code-123-brightgreen.svg?style=flat)](http://blog.codinghorror.com/the-best-code-is-no-code-at-all/)
|
2
2
|
|
3
3
|
# StimulusReflex
|
4
4
|
|
@@ -23,11 +23,11 @@ gem "stimulus_reflex"
|
|
23
23
|
```
|
24
24
|
|
25
25
|
```javascript
|
26
|
-
// javascript/controllers/example.js
|
26
|
+
// app/javascript/controllers/example.js
|
27
27
|
import { Controller } from "stimulus"
|
28
28
|
|
29
29
|
export default class extends Controller {
|
30
|
-
|
30
|
+
connect() {
|
31
31
|
StimulusReflex.register(this);
|
32
32
|
}
|
33
33
|
|
@@ -1 +1 @@
|
|
1
|
-
window.StimulusReflex=function(t){var e={};function n(r){if(e[r])return e[r].exports;var
|
1
|
+
window.StimulusReflex=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1)}([function(t,e,n){(function(e){var n="Expected a function",r=NaN,o="[object Symbol]",i=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,f=/^0o[0-7]+$/i,a=parseInt,l="object"==typeof e&&e&&e.Object===Object&&e,s="object"==typeof self&&self&&self.Object===Object&&self,p=l||s||Function("return this")(),d=Object.prototype.toString,b=Math.max,v=Math.min,y=function(){return p.Date.now()};function m(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function j(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&d.call(t)==o}(t))return r;if(m(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=m(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(i,"");var n=c.test(t);return n||f.test(t)?a(t.slice(2),n?2:8):u.test(t)?r:+t}t.exports=function(t,e,r){var o,i,u,c,f,a,l=0,s=!1,p=!1,d=!0;if("function"!=typeof t)throw new TypeError(n);function x(e){var n=o,r=i;return o=i=void 0,l=e,c=t.apply(r,n)}function g(t){var n=t-a;return void 0===a||n>=e||n<0||p&&t-l>=u}function h(){var t=y();if(g(t))return w(t);f=setTimeout(h,function(t){var n=e-(t-a);return p?v(n,u-(t-l)):n}(t))}function w(t){return f=void 0,d&&o?x(t):(o=i=void 0,c)}function O(){var t=y(),n=g(t);if(o=arguments,i=this,a=t,n){if(void 0===f)return function(t){return l=t,f=setTimeout(h,e),s?x(t):c}(a);if(p)return f=setTimeout(h,e),x(a)}return void 0===f&&(f=setTimeout(h,e)),c}return e=j(e)||0,m(r)&&(s=!!r.leading,u=(p="maxWait"in r)?b(j(r.maxWait)||0,e):u,d="trailing"in r?!!r.trailing:d),O.cancel=function(){void 0!==f&&clearTimeout(f),l=0,o=a=i=f=void 0},O.flush=function(){return void 0===f?c:w(y())},O}}).call(this,n(2))},function(t,e,n){"use strict";n.r(e),n.d(e,"register",function(){return f});var r=n(0),o=n.n(r);window.App=window.App||{},App.cable=App.cable||ActionCable.createConsumer(),App.stimulusReflex=App.stimulusReflex||App.cable.subscriptions.create("StimulusReflex::Channel",{received:function(t){t.cableReady&&u(t.operations)}});var i=o()(function(t){return App.stimulusReflex.send(t)},250,{}),u=o()(function(t){CableReady.perform(t),document.dispatchEvent(new Event("turbolinks:load"))},200,{}),c={send:function(){var t=Array.prototype.slice.call(arguments),e=t.shift();i({url:location.href,target:e,args:t})}},f=function(t){return Object.assign(t,c),t}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n}]);
|