style-guide 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8aaaf470197c093cb9fde5856dce11989c8a62fa
4
- data.tar.gz: 30bdaab80e74450807c7d9f62c94faf35b3f7a6d
3
+ metadata.gz: bd4c019de3c892a0f977e6c0819bcf2aec1e59d0
4
+ data.tar.gz: 562f33c3bcfa719babd4c45bb1ed53ce021bcf5d
5
5
  SHA512:
6
- metadata.gz: a73a5e9b3950169880ecc16dc60ff129d5f7a031c9f7e47e00ab51aff42861618c2a13648df96d43cd0db2e6824a42fc7bca467f6f5d13ae826a1cab3329bafa
7
- data.tar.gz: 07f3c253d2becb39f3b3d2d18e1ad1ee00d0d33c97147fbd1bddf4fa97e362f63238b8413854c3022bb7b51d76db14985faedeafd72a892f68c57558ea68b07c
6
+ metadata.gz: 9e7c3642bfec19996d10223ab876b106abd6be46220de00748502fe8c1e3e6974fe3b204ec98a11b4638c5c40f12a774429160a8645a4cc900664868d8160ff3
7
+ data.tar.gz: fd14e628b3ebc6348616688d8b08db837e635ae28bff21bc5f10a8282f371ac4cae91a2d0ca4c2f52e9b01a856fe84236747be928c2ec2b0620c23bee6828086
data/.gitignore CHANGED
@@ -12,3 +12,4 @@ spec/dummy/app/assets/stylesheets/.DS_Store
12
12
  /tmp
13
13
  *.gem
14
14
  /.idea
15
+ Gemfile.lock
@@ -7,13 +7,13 @@
7
7
  event.preventDefault();
8
8
  }
9
9
 
10
- function preventDefaultOnClick(elements) {
10
+ function preventDefaultOn(elements, eventName) {
11
11
  for (var i = 0, element; element = elements[i]; i++) {
12
- element.onclick = eventDefaultPreventer;
12
+ element.addEventListener(eventName, eventDefaultPreventer, false);
13
13
  }
14
14
  }
15
15
 
16
- preventDefaultOnClick($forms);
17
- preventDefaultOnClick($links);
18
- preventDefaultOnClick($sources);
19
- })();
16
+ preventDefaultOn($forms, 'submit');
17
+ preventDefaultOn($sources, 'click');
18
+ preventDefaultOn($links, 'click');
19
+ })();
@@ -1,3 +1,3 @@
1
1
  module StyleGuide
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: style-guide
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Doc Ritezel