ajax_canvas_field 0.0.3 → 0.0.4

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: c7e16a44437f60d13cdc18634cf46037d36db50a
4
- data.tar.gz: 4e762257091886e8c51a00be37949fc278dae2eb
3
+ metadata.gz: 016613ee17ea5c099cffd05dd8f09c9bd3d1916e
4
+ data.tar.gz: 2f36c4082f8ec81255bda07cc01fe1f3914ee572
5
5
  SHA512:
6
- metadata.gz: 4a4760ba50f3c4f3bd88c9b9a7725d87441776a9c6510d76421c34589598f6c1395bdee62419fa31cba0c6c733e41c0b54941b0f7eb98c45ff30771801a4b204
7
- data.tar.gz: 128c22728815460d5a17c5189a99cbc329df4369f28393a230370a21d0f18242a04eee4fa40e6578ec1211c788bedfba0bc0e568e3617cd3abbdabbc6771ecd3
6
+ metadata.gz: 8f09d2cf6aa8235e729281a96fd32265e4c6b3e8d9dfe63f79b523609097db9abd511bf4bf17f0b82f74fa4e68d4eeb33d0dc5ef7e13ffff0ff609ccd0fa035d
7
+ data.tar.gz: 38b0241032d585e38fde3b200431924435a9c7d4643a4f68c552c3d71c7d984744e7508c3cc2c7548cdfe8cd249b9f918c52ad195584fc42659e427e65eebcf6
@@ -166,13 +166,13 @@ document.addEventListener('DOMContentLoaded', function(){
166
166
  document.getElementsByClassName('active canvas_data_field')[0].dataset.initialData = JSON.stringify(tmpData);
167
167
  }
168
168
 
169
- if (canvas.dataset.leftActive) {
169
+ if (canvas.dataset.leftActive == 'true') {
170
170
  canvas.addEventListener('click', isPixelCollision, false);
171
171
  }
172
- if (canvas.dataset.middleActive) {
172
+ if (canvas.dataset.middleActive == 'true') {
173
173
  canvas.addEventListener('auxclick', isPixelCollision, false);
174
174
  }
175
- if (canvas.dataset.rightActive) {
175
+ if (canvas.dataset.rightActive == 'true') {
176
176
  canvas.addEventListener('contextmenu', isPixelCollision, false);
177
177
  }
178
178
  initCircles();
@@ -1,5 +1,5 @@
1
1
  module AjaxCanvasField #:nodoc:
2
2
  module Rails #:nodoc:
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ajax_canvas_field
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - datyv