clipboard-rails 1.4.1 → 1.4.2

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: 298ce61379440c5c5b30d08e0063fa25cf99c4dc
4
- data.tar.gz: d24c9ddc14a2de802479bb4e707095dc0a458705
3
+ metadata.gz: 9786c8c3887dd2f3f68184a98a827b00f84280c6
4
+ data.tar.gz: 34db356a467a263cef35f9e229e79f481ec5d3c4
5
5
  SHA512:
6
- metadata.gz: 2383d07d79008b4ffcdd57c7e97f09efdb6b73d88ba43b9b46cd4b80534a8ff40dfbcb460a4c06b17fd45ff2d0bcf65fdb27726bc2b9aaa290c5504542936936
7
- data.tar.gz: ed8dc4a32424a1f09454b5c611b94464b4c9960693c12e4c76c4f3a3c8ba2e941b45b20ab3b5110f51a4d7a9ed4f975134a9bf5c1dfdfefe14016bb3c98cf503
6
+ metadata.gz: 0b3621964578c3bda33a56e79f4cc16ec2a3156c9877aa658cef16392c4dcc72d14925337efbfad5d1845a3ef223ed0d2600fc79c69ed04941a226bf1425ab05
7
+ data.tar.gz: 1b8e778dce4da4ef1c60232a5ff0d7e63ac12ac4ab23d85e5f1cba46fa955c6bcbc6d53e7555eb0b7a67468a36a6c3292238f83ef619bae8141b190691c5a08e
@@ -1,5 +1,5 @@
1
1
  module Clipboard
2
2
  module Rails
3
- VERSION = "1.4.1"
3
+ VERSION = "1.4.2"
4
4
  end
5
5
  end
@@ -294,7 +294,7 @@ var ClipboardAction = (function () {
294
294
 
295
295
  /**
296
296
  * Only removes the fake element after another click event, that way
297
- * an user can hit `Ctrl+C` to copy because selection still exists.
297
+ * a user can hit `Ctrl+C` to copy because selection still exists.
298
298
  */
299
299
 
300
300
  ClipboardAction.prototype.removeFake = function removeFake() {
@@ -321,6 +321,7 @@ var ClipboardAction = (function () {
321
321
  var range = document.createRange();
322
322
  var selection = window.getSelection();
323
323
 
324
+ selection.removeAllRanges();
324
325
  range.selectNodeContents(this.target);
325
326
  selection.addRange(range);
326
327
  this.selectedText = selection.toString();
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clipboard-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mohammed Sadiq
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-10-09 00:00:00.000000000 Z
11
+ date: 2015-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler