clipboard-rails 1.4.0 → 1.4.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: 7adecfec979b0797c27dc425c3de4195849e77e4
4
- data.tar.gz: 1d89fbbb306cafb7628f6507c91a8c6dedfc7839
3
+ metadata.gz: 298ce61379440c5c5b30d08e0063fa25cf99c4dc
4
+ data.tar.gz: d24c9ddc14a2de802479bb4e707095dc0a458705
5
5
  SHA512:
6
- metadata.gz: 1cd6b859d27a015fd064e882b56d2e41eae9dbedf1ba393af25b9ddc60c871d6bc447c1ece687b18d84e1614f5c0d2885a8404629e88134afd3d3a87de7eaa71
7
- data.tar.gz: 45a8f9a8b016983bc7544dc0bb9bba13250f3b5379b5fa0071e623bd70e9eecc0e46148dc03645adb0199d9510cd57806d10a8dca5989bab4ed855f9ddc2ab6b
6
+ metadata.gz: 2383d07d79008b4ffcdd57c7e97f09efdb6b73d88ba43b9b46cd4b80534a8ff40dfbcb460a4c06b17fd45ff2d0bcf65fdb27726bc2b9aaa290c5504542936936
7
+ data.tar.gz: ed8dc4a32424a1f09454b5c611b94464b4c9960693c12e4c76c4f3a3c8ba2e941b45b20ab3b5110f51a4d7a9ed4f975134a9bf5c1dfdfefe14016bb3c98cf503
@@ -1,5 +1,5 @@
1
1
  module Clipboard
2
2
  module Rails
3
- VERSION = "1.4.0"
3
+ VERSION = "1.4.1"
4
4
  end
5
5
  end
@@ -141,12 +141,12 @@ exports.unbind = function(el, type, fn, capture){
141
141
  };
142
142
  },{}],5:[function(require,module,exports){
143
143
  function E () {
144
- // Keep this empty so it's easier to inherit from
144
+ // Keep this empty so it's easier to inherit from
145
145
  // (via https://github.com/lipsmack from https://github.com/scottcorgan/tiny-emitter/issues/3)
146
146
  }
147
147
 
148
148
  E.prototype = {
149
- on: function (name, callback, ctx) {
149
+ on: function (name, callback, ctx) {
150
150
  var e = this.e || (this.e = {});
151
151
 
152
152
  (e[name] || (e[name] = [])).push({
@@ -281,7 +281,7 @@ var ClipboardAction = (function () {
281
281
  this.fakeElem = document.createElement('textarea');
282
282
  this.fakeElem.style.position = 'absolute';
283
283
  this.fakeElem.style.left = '-9999px';
284
- this.fakeElem.style.top = document.body.scrollTop + 'px';
284
+ this.fakeElem.style.top = (window.pageYOffset || document.documentElement.scrollTop) + 'px';
285
285
  this.fakeElem.setAttribute('readonly', '');
286
286
  this.fakeElem.value = this.text;
287
287
  this.selectedText = this.text;
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.0
4
+ version: 1.4.1
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-04 00:00:00.000000000 Z
11
+ date: 2015-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler