urb 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTUyZDNjOTExNzdlMzljOGQyZmNmMzIzMjZlNmZlNjY3YmJiMzE2OA==
4
+ ODcwMjA0ZDUyNGNhOTgzNDE4YjhkMTVlMTM0MzE0M2EyYjE0YWMwZQ==
5
5
  data.tar.gz: !binary |-
6
- NjM4ZDhmMjhmYzIwZThlOGM4OGY4MTk1NGVkNzJkNmExODgwMGFkYQ==
6
+ NjZkNDRkZDY0M2Q3ZmMyYTI3OTVkYzgzMmUyY2UzZWI3ODQ4MTYxNA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NjYxMmI5ZDNhNTgyYmE4NjNiYWY3MDI2ZWZkNDViNzZlYTY4YThlNWUzMTEw
10
- MWRjNWQ1ZDczNDY2MzY5Y2U2ZGEyYTUwMzZiNDUxMWFjOTcwYjY2NDdjNWY4
11
- ZjBhNzY4Zjc4MjQ3YTcyMmQxNmIwNTEzMzUxMGY4OTQ0ZGZlZGE=
9
+ NDg5MzgzYjhhNTMyMGQ5ZGY4OWIzYTNiZWE4MmE4NDI4OGY2NGRiYTU5YjY0
10
+ YTkyNTk1MzNhOWJkMDlhM2ZlZjVmZDRkNWM0YTdhMGJhYzc4YTc1OWViNjM0
11
+ NDNiYWQzNDM1NmU1YjRiZjMwYWEzNjBmMjRhY2ZmZWM1ZjliYzU=
12
12
  data.tar.gz: !binary |-
13
- Zjk3NjU2MDA5ZjE0MTBlZWMyNGM3YzUzNzM4YmUyZTA0ZWEyNDNmODgwNDI2
14
- NzViNDU5NWU2MzhjYTRhNjlkYzFiZjM5YTBiZGVkZjQ3N2ViYWRhODM3YzA1
15
- ODU4YzFiY2VhZWYwZjJiNmNlZGM3M2QyMGU3M2YxZDViYTEyOTM=
13
+ ZjFlNDMwY2NkMTFiNjcwZTQwMmY2ZmYwMTRmNDI0YjI0ZTk4MGY1YTRhNjA0
14
+ NTkyYmNmOGYzZTQyNjMxNjUzYThkZDMzOGRiZTkwMTE3YTdlYmU1Yzg2M2Nl
15
+ ZDgwZjU5ZTM4NzRlMGU0NThhMmYxMDdlMThiOTViMGU0ZjhlMzc=
@@ -1,5 +1,9 @@
1
1
  = URB CHANGELOG
2
2
 
3
+ == Version 0.1.5 (October 22, 2014)
4
+
5
+ * Fixed error when clicking on non-href element
6
+
3
7
  == Version 0.1.4 (October 22, 2014)
4
8
 
5
9
  * Ignoring links with hash tags
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.1.5
@@ -24,8 +24,8 @@ URB = (function() {
24
24
  init = function() {
25
25
  $.on(document, 'click', function(event) {
26
26
  var target = event.target || event.srcElement || window.event.target || window.event.srcElement, css = URB.css || '', leftClick = (event.which || event.button) == 1, href = target.getAttribute('href');
27
- if (leftClick && !href.match(/#/)) {
28
- if (target.tagName.toLowerCase() == 'a' && ((css == '') || $.hasClass(target, css))) {
27
+ if (leftClick) {
28
+ if (target.tagName.toLowerCase() == 'a' && ((css == '') || $.hasClass(target, css)) && !href.match(/#/)) {
29
29
  event.preventDefault();
30
30
  open(target.getAttribute('href'), ((event.ctrlKey || event.metaKey) ? '_blank' : undefined));
31
31
  }
@@ -1,7 +1,7 @@
1
1
  module URB
2
2
  MAJOR = 0
3
3
  MINOR = 1
4
- TINY = 4
4
+ TINY = 5
5
5
 
6
6
  VERSION = [MAJOR, MINOR, TINY].join(".")
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: urb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Engel