RubyApp 0.6.50 → 0.6.51

Sign up to get free protection for your applications and to get access to all the features.
@@ -243,6 +243,7 @@
243
243
  };
244
244
 
245
245
  $(window).load(function() {
246
+ new FastClick(document.body);
246
247
  RubyApp.sendEvent({_class:'RubyApp::Elements::Mobile::Document::LoadedEvent', source:$('html').attr('id')});
247
248
  if ($('div[data-role="page"][id]').length)
248
249
  RubyApp.sendEvent({_class:'RubyApp::Elements::Mobile::Page::LoadedEvent', source:$('div[data-role="page"]').filter(':first').attr('id')});
@@ -48,6 +48,7 @@ module RubyApp
48
48
  @scripts.push('http://code.jquery.com/jquery-1.8.3.min.js')
49
49
  @scripts.push('http://code.jquery.com/ui/1.9.2/jquery-ui.min.js')
50
50
  @scripts.push('/ruby_app/resources/elements/mobile/document/jquery.ui.touch-punch.min.js')
51
+ @scripts.push('/ruby_app/resources/elements/mobile/document/fastclick.js')
51
52
  @scripts.push('/ruby_app/resources/elements/mobile/document/document.js')
52
53
  @scripts.push('http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js')
53
54
 
@@ -0,0 +1,654 @@
1
+ /**
2
+ * @preserve FastClick: polyfill to remove click delays on browsers with touch UIs.
3
+ *
4
+ * @version 0.5.3
5
+ * @codingstandard ftlabs-jsv2
6
+ * @copyright The Financial Times Limited [All Rights Reserved]
7
+ * @license MIT License (see LICENSE.txt)
8
+ */
9
+
10
+ /*jslint browser:true, node:true*/
11
+ /*global define, Event, Node*/
12
+
13
+
14
+ /**
15
+ * Instantiate fast-clicking listeners on the specificed layer.
16
+ *
17
+ * @constructor
18
+ * @param {Element} layer The layer to listen on
19
+ */
20
+ function FastClick(layer) {
21
+ 'use strict';
22
+ var oldOnClick, self = this;
23
+
24
+
25
+ /**
26
+ * Whether a click is currently being tracked.
27
+ *
28
+ * @type boolean
29
+ */
30
+ this.trackingClick = false;
31
+
32
+
33
+ /**
34
+ * Timestamp for when when click tracking started.
35
+ *
36
+ * @type number
37
+ */
38
+ this.trackingClickStart = 0;
39
+
40
+
41
+ /**
42
+ * The element being tracked for a click.
43
+ *
44
+ * @type EventTarget
45
+ */
46
+ this.targetElement = null;
47
+
48
+
49
+ /**
50
+ * X-coordinate of touch start event.
51
+ *
52
+ * @type number
53
+ */
54
+ this.touchStartX = 0;
55
+
56
+
57
+ /**
58
+ * Y-coordinate of touch start event.
59
+ *
60
+ * @type number
61
+ */
62
+ this.touchStartY = 0;
63
+
64
+
65
+ /**
66
+ * ID of the last touch, retrieved from Touch.identifier.
67
+ *
68
+ * @type number
69
+ */
70
+ this.lastTouchIdentifier = 0;
71
+
72
+
73
+ /**
74
+ * The FastClick layer.
75
+ *
76
+ * @type Element
77
+ */
78
+ this.layer = layer;
79
+
80
+ if (!layer || !layer.nodeType) {
81
+ throw new TypeError('Layer must be a document node');
82
+ }
83
+
84
+ /** @type function() */
85
+ this.onClick = function() { FastClick.prototype.onClick.apply(self, arguments); };
86
+
87
+ /** @type function() */
88
+ this.onTouchStart = function() { FastClick.prototype.onTouchStart.apply(self, arguments); };
89
+
90
+ /** @type function() */
91
+ this.onTouchMove = function() { FastClick.prototype.onTouchMove.apply(self, arguments); };
92
+
93
+ /** @type function() */
94
+ this.onTouchEnd = function() { FastClick.prototype.onTouchEnd.apply(self, arguments); };
95
+
96
+ /** @type function() */
97
+ this.onTouchCancel = function() { FastClick.prototype.onTouchCancel.apply(self, arguments); };
98
+
99
+ // Devices that don't support touch don't need FastClick
100
+ if (typeof window.ontouchstart === 'undefined') {
101
+ return;
102
+ }
103
+
104
+ // Set up event handlers as required
105
+ layer.addEventListener('click', this.onClick, true);
106
+ layer.addEventListener('touchstart', this.onTouchStart, false);
107
+ layer.addEventListener('touchmove', this.onTouchMove, false);
108
+ layer.addEventListener('touchend', this.onTouchEnd, false);
109
+ layer.addEventListener('touchcancel', this.onTouchCancel, false);
110
+
111
+ // Hack is required for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2)
112
+ // which is how FastClick normally stops click events bubbling to callbacks registered on the FastClick
113
+ // layer when they are cancelled.
114
+ if (!Event.prototype.stopImmediatePropagation) {
115
+ layer.removeEventListener = function(type, callback, capture) {
116
+ var rmv = Node.prototype.removeEventListener;
117
+ if (type === 'click') {
118
+ rmv.call(layer, type, callback.hijacked || callback, capture);
119
+ } else {
120
+ rmv.call(layer, type, callback, capture);
121
+ }
122
+ };
123
+
124
+ layer.addEventListener = function(type, callback, capture) {
125
+ var adv = Node.prototype.addEventListener;
126
+ if (type === 'click') {
127
+ adv.call(layer, type, callback.hijacked || (callback.hijacked = function(event) {
128
+ if (!event.propagationStopped) {
129
+ callback(event);
130
+ }
131
+ }), capture);
132
+ } else {
133
+ adv.call(layer, type, callback, capture);
134
+ }
135
+ };
136
+ }
137
+
138
+ // If a handler is already declared in the element's onclick attribute, it will be fired before
139
+ // FastClick's onClick handler. Fix this by pulling out the user-defined handler function and
140
+ // adding it as listener.
141
+ if (typeof layer.onclick === 'function') {
142
+
143
+ // Android browser on at least 3.2 requires a new reference to the function in layer.onclick
144
+ // - the old one won't work if passed to addEventListener directly.
145
+ oldOnClick = layer.onclick;
146
+ layer.addEventListener('click', function(event) {
147
+ oldOnClick(event);
148
+ }, false);
149
+ layer.onclick = null;
150
+ }
151
+ }
152
+
153
+
154
+ /**
155
+ * Android requires an exception for labels.
156
+ *
157
+ * @type boolean
158
+ */
159
+ FastClick.prototype.deviceIsAndroid = navigator.userAgent.indexOf('Android') > 0;
160
+
161
+
162
+ /**
163
+ * iOS requires an exception for alert confirm dialogs.
164
+ *
165
+ * @type boolean
166
+ */
167
+ FastClick.prototype.deviceIsIOS = /iP(ad|hone|od)/.test(navigator.userAgent);
168
+
169
+
170
+ /**
171
+ * iOS 4 requires an exception for select elements.
172
+ *
173
+ * @type boolean
174
+ */
175
+ FastClick.prototype.deviceIsIOS4 = FastClick.prototype.deviceIsIOS && (/OS 4_\d(_\d)?/).test(navigator.userAgent);
176
+
177
+
178
+ /**
179
+ * iOS 6.0(+?) requires the target element to be manually derived
180
+ *
181
+ * @type boolean
182
+ */
183
+ FastClick.prototype.deviceIsIOSWithBadTarget = FastClick.prototype.deviceIsIOS && (/OS ([6-9]|\d{2})_\d/).test(navigator.userAgent);
184
+
185
+
186
+ /**
187
+ * Determine whether a given element requires a native click.
188
+ *
189
+ * @param {EventTarget|Element} target Target DOM element
190
+ * @returns {boolean} Returns true if the element needs a native click
191
+ */
192
+ FastClick.prototype.needsClick = function(target) {
193
+ 'use strict';
194
+ switch (target.nodeName.toLowerCase()) {
195
+ case 'input':
196
+
197
+ // Don't send a synthetic click to disabled inputs (issue #62)
198
+ return target.disabled;
199
+ case 'label':
200
+ case 'video':
201
+ return true;
202
+ default:
203
+ return (/\bneedsclick\b/).test(target.className);
204
+ }
205
+ };
206
+
207
+
208
+ /**
209
+ * Determine whether a given element requires a call to focus to simulate click into element.
210
+ *
211
+ * @param {EventTarget|Element} target Target DOM element
212
+ * @returns {boolean} Returns true if the element requires a call to focus to simulate native click.
213
+ */
214
+ FastClick.prototype.needsFocus = function(target) {
215
+ 'use strict';
216
+ switch (target.nodeName.toLowerCase()) {
217
+ case 'textarea':
218
+ case 'select':
219
+ return true;
220
+ case 'input':
221
+ switch (target.type) {
222
+ case 'button':
223
+ case 'checkbox':
224
+ case 'file':
225
+ case 'image':
226
+ case 'radio':
227
+ case 'submit':
228
+ return false;
229
+ }
230
+
231
+ // No point in attempting to focus disabled inputs
232
+ return !target.disabled;
233
+ default:
234
+ return (/\bneedsfocus\b/).test(target.className);
235
+ }
236
+ };
237
+
238
+
239
+ /**
240
+ * Send a click event to the specified element.
241
+ *
242
+ * @param {EventTarget|Element} targetElement
243
+ * @param {Event} event
244
+ */
245
+ FastClick.prototype.sendClick = function(targetElement, event) {
246
+ 'use strict';
247
+ var clickEvent, touch;
248
+
249
+ // On some Android devices activeElement needs to be blurred otherwise the synthetic click will have no effect (#24)
250
+ if (document.activeElement && document.activeElement !== targetElement) {
251
+ document.activeElement.blur();
252
+ }
253
+
254
+ touch = event.changedTouches[0];
255
+
256
+ // Synthesise a click event, with an extra attribute so it can be tracked
257
+ clickEvent = document.createEvent('MouseEvents');
258
+ clickEvent.initMouseEvent('click', true, true, window, 1, touch.screenX, touch.screenY, touch.clientX, touch.clientY, false, false, false, false, 0, null);
259
+ clickEvent.forwardedTouchEvent = true;
260
+ targetElement.dispatchEvent(clickEvent);
261
+ };
262
+
263
+
264
+ /**
265
+ * @param {EventTarget|Element} targetElement
266
+ */
267
+ FastClick.prototype.focus = function(targetElement) {
268
+ 'use strict';
269
+ var length;
270
+
271
+ if (this.deviceIsIOS && targetElement.setSelectionRange) {
272
+ length = targetElement.value.length;
273
+ targetElement.setSelectionRange(length, length);
274
+ } else {
275
+ targetElement.focus();
276
+ }
277
+ };
278
+
279
+
280
+ /**
281
+ * Check whether the given target element is a child of a scrollable layer and if so, set a flag on it.
282
+ *
283
+ * @param {EventTarget|Element} targetElement
284
+ */
285
+ FastClick.prototype.updateScrollParent = function(targetElement) {
286
+ 'use strict';
287
+ var scrollParent, parentElement;
288
+
289
+ scrollParent = targetElement.fastClickScrollParent;
290
+
291
+ // Attempt to discover whether the target element is contained within a scrollable layer. Re-check if the
292
+ // target element was moved to another parent.
293
+ if (!scrollParent || !scrollParent.contains(targetElement)) {
294
+ parentElement = targetElement;
295
+ do {
296
+ if (parentElement.scrollHeight > parentElement.offsetHeight) {
297
+ scrollParent = parentElement;
298
+ targetElement.fastClickScrollParent = parentElement;
299
+ break;
300
+ }
301
+
302
+ parentElement = parentElement.parentElement;
303
+ } while (parentElement);
304
+ }
305
+
306
+ // Always update the scroll top tracker if possible.
307
+ if (scrollParent) {
308
+ scrollParent.fastClickLastScrollTop = scrollParent.scrollTop;
309
+ }
310
+ };
311
+
312
+
313
+ /**
314
+ * @param {EventTarget} targetElement
315
+ * @returns {Element|EventTarget}
316
+ */
317
+ FastClick.prototype.getTargetElementFromEventTarget = function(eventTarget) {
318
+ 'use strict';
319
+
320
+ // On some older browsers (notably Safari on iOS 4.1 - see issue #56) the event target may be a text node.
321
+ if (eventTarget.nodeType === Node.TEXT_NODE) {
322
+ return eventTarget.parentNode;
323
+ }
324
+
325
+ return eventTarget;
326
+ };
327
+
328
+
329
+ /**
330
+ * On touch start, record the position and scroll offset.
331
+ *
332
+ * @param {Event} event
333
+ * @returns {boolean}
334
+ */
335
+ FastClick.prototype.onTouchStart = function(event) {
336
+ 'use strict';
337
+ var targetElement, touch;
338
+
339
+ targetElement = this.getTargetElementFromEventTarget(event.target);
340
+ touch = event.targetTouches[0];
341
+
342
+ if (this.deviceIsIOS) {
343
+
344
+ // Only trusted events will deselect text on iOS (issue #49)
345
+ if (window.getSelection().rangeCount) {
346
+ return true;
347
+ }
348
+
349
+ if (!this.deviceIsIOS4) {
350
+
351
+ // Weird things happen on iOS when an alert or confirm dialog is opened from a click event callback (issue #23):
352
+ // when the user next taps anywhere else on the page, new touchstart and touchend events are dispatched
353
+ // with the same identifier as the touch event that previously triggered the click that triggered the alert.
354
+ // Sadly, there is an issue on iOS 4 that causes some normal touch events to have the same identifier as an
355
+ // immediately preceeding touch event (issue #52), so this fix is unavailable on that platform.
356
+ if (touch.identifier === this.lastTouchIdentifier) {
357
+ event.preventDefault();
358
+ return false;
359
+ }
360
+
361
+ this.lastTouchIdentifier = touch.identifier;
362
+
363
+ // If the target element is a child of a scrollable layer (using -webkit-overflow-scrolling: touch) and:
364
+ // 1) the user does a fling scroll on the scrollable layer
365
+ // 2) the user stops the fling scroll with another tap
366
+ // then the event.target of the last 'touchend' event will be the element that was under the user's finger
367
+ // when the fling scroll was started, causing FastClick to send a click event to that layer - unless a check
368
+ // is made to ensure that a parent layer was not scrolled before sending a synthetic click (issue #42).
369
+ this.updateScrollParent(targetElement);
370
+ }
371
+ }
372
+
373
+ this.trackingClick = true;
374
+ this.trackingClickStart = event.timeStamp;
375
+ this.targetElement = targetElement;
376
+
377
+ this.touchStartX = touch.pageX;
378
+ this.touchStartY = touch.pageY;
379
+
380
+ // Prevent phantom clicks on fast double-tap (issue #36)
381
+ if ((event.timeStamp - this.lastClickTime) < 200) {
382
+ event.preventDefault();
383
+ }
384
+
385
+ return true;
386
+ };
387
+
388
+
389
+ /**
390
+ * Based on a touchmove event object, check whether the touch has moved past a boundary since it started.
391
+ *
392
+ * @param {Event} event
393
+ * @returns {boolean}
394
+ */
395
+ FastClick.prototype.touchHasMoved = function(event) {
396
+ 'use strict';
397
+ var touch = event.targetTouches[0];
398
+
399
+ if (Math.abs(touch.pageX - this.touchStartX) > 10 || Math.abs(touch.pageY - this.touchStartY) > 10) {
400
+ return true;
401
+ }
402
+
403
+ return false;
404
+ };
405
+
406
+
407
+ /**
408
+ * Update the last position.
409
+ *
410
+ * @param {Event} event
411
+ * @returns {boolean}
412
+ */
413
+ FastClick.prototype.onTouchMove = function(event) {
414
+ 'use strict';
415
+ if (!this.trackingClick) {
416
+ return true;
417
+ }
418
+
419
+ // If the touch has moved, cancel the click tracking
420
+ if (this.targetElement !== this.getTargetElementFromEventTarget(event.target) || this.touchHasMoved(event)) {
421
+ this.trackingClick = false;
422
+ this.targetElement = null;
423
+ }
424
+
425
+ return true;
426
+ };
427
+
428
+
429
+ /**
430
+ * Attempt to find the labelled control for the given label element.
431
+ *
432
+ * @param {EventTarget|HTMLLabelElement} labelElement
433
+ * @returns {Element|null}
434
+ */
435
+ FastClick.prototype.findControl = function(labelElement) {
436
+ 'use strict';
437
+
438
+ // Fast path for newer browsers supporting the HTML5 control attribute
439
+ if (labelElement.control !== undefined) {
440
+ return labelElement.control;
441
+ }
442
+
443
+ // All browsers under test that support touch events also support the HTML5 htmlFor attribute
444
+ if (labelElement.htmlFor) {
445
+ return document.getElementById(labelElement.htmlFor);
446
+ }
447
+
448
+ // If no for attribute exists, attempt to retrieve the first labellable descendant element
449
+ // the list of which is defined here: http://www.w3.org/TR/html5/forms.html#category-label
450
+ return labelElement.querySelector('button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea');
451
+ };
452
+
453
+
454
+ /**
455
+ * On touch end, determine whether to send a click event at once.
456
+ *
457
+ * @param {Event} event
458
+ * @returns {boolean}
459
+ */
460
+ FastClick.prototype.onTouchEnd = function(event) {
461
+ 'use strict';
462
+ var forElement, trackingClickStart, targetTagName, scrollParent, touch, targetElement = this.targetElement;
463
+
464
+ if (!this.trackingClick) {
465
+ return true;
466
+ }
467
+
468
+ // Prevent phantom clicks on fast double-tap (issue #36)
469
+ if ((event.timeStamp - this.lastClickTime) < 200) {
470
+ this.cancelNextClick = true;
471
+ return true;
472
+ }
473
+
474
+ this.lastClickTime = event.timeStamp;
475
+
476
+ trackingClickStart = this.trackingClickStart;
477
+ this.trackingClick = false;
478
+ this.trackingClickStart = 0;
479
+
480
+ // On some iOS devices, the targetElement supplied with the event is invalid if the layer
481
+ // is performing a transition or scroll, and has to be re-detected manually. Note that
482
+ // for this to function correctly, it must be called *after* the event target is checked!
483
+ // See issue #57; also filed as rdar://13048589 .
484
+ if (this.deviceIsIOSWithBadTarget) {
485
+ touch = event.changedTouches[0];
486
+ targetElement = event.target;
487
+ targetElement = document.elementFromPoint(touch.pageX - window.pageXOffset, touch.pageY - window.pageYOffset);
488
+ }
489
+
490
+ targetTagName = targetElement.tagName.toLowerCase();
491
+ if (targetTagName === 'label') {
492
+ forElement = this.findControl(targetElement);
493
+ if (forElement) {
494
+ this.focus(targetElement);
495
+ if (this.deviceIsAndroid) {
496
+ return false;
497
+ }
498
+
499
+ targetElement = forElement;
500
+ }
501
+ } else if (this.needsFocus(targetElement)) {
502
+
503
+ // Case 1: If the touch started a while ago (best guess is 100ms based on tests for issue #36) then focus will be triggered anyway. Return early and unset the target element reference so that the subsequent click will be allowed through.
504
+ // Case 2: Without this exception for input elements tapped when the document is contained in an iframe, then any inputted text won't be visible even though the value attribute is updated as the user types (issue #37).
505
+ if ((event.timeStamp - trackingClickStart) > 100 || (this.deviceIsIOS && window.top !== window && targetTagName === 'input')) {
506
+ this.targetElement = null;
507
+ return false;
508
+ }
509
+
510
+ this.focus(targetElement);
511
+
512
+ // Select elements need the event to go through on iOS 4, otherwise the selector menu won't open.
513
+ if (!this.deviceIsIOS4 || targetTagName !== 'select') {
514
+ this.targetElement = null;
515
+ event.preventDefault();
516
+ }
517
+
518
+ return false;
519
+ }
520
+
521
+ if (this.deviceIsIOS && !this.deviceIsIOS4) {
522
+
523
+ // Don't send a synthetic click event if the target element is contained within a parent layer that was scrolled
524
+ // and this tap is being used to stop the scrolling (usually initiated by a fling - issue #42).
525
+ scrollParent = targetElement.fastClickScrollParent;
526
+ if (scrollParent && scrollParent.fastClickLastScrollTop !== scrollParent.scrollTop) {
527
+ return true;
528
+ }
529
+ }
530
+
531
+ // Prevent the actual click from going though - unless the target node is marked as requiring
532
+ // real clicks or if it is in the whitelist in which case only non-programmatic clicks are permitted.
533
+ if (!this.needsClick(targetElement)) {
534
+ event.preventDefault();
535
+ this.sendClick(targetElement, event);
536
+ }
537
+
538
+ return false;
539
+ };
540
+
541
+
542
+ /**
543
+ * On touch cancel, stop tracking the click.
544
+ *
545
+ * @returns {void}
546
+ */
547
+ FastClick.prototype.onTouchCancel = function() {
548
+ 'use strict';
549
+ this.trackingClick = false;
550
+ this.targetElement = null;
551
+ };
552
+
553
+
554
+ /**
555
+ * On actual clicks, determine whether this is a touch-generated click, a click action occurring
556
+ * naturally after a delay after a touch (which needs to be cancelled to avoid duplication), or
557
+ * an actual click which should be permitted.
558
+ *
559
+ * @param {Event} event
560
+ * @returns {boolean}
561
+ */
562
+ FastClick.prototype.onClick = function(event) {
563
+ 'use strict';
564
+ var oldTargetElement;
565
+
566
+ // If a target element was never set (because a touch event was never fired) allow the click
567
+ if (!this.targetElement) {
568
+ return true;
569
+ }
570
+
571
+ if (event.forwardedTouchEvent) {
572
+ return true;
573
+ }
574
+
575
+ oldTargetElement = this.targetElement;
576
+ this.targetElement = null;
577
+
578
+ // It's possible for another FastClick-like library delivered with third-party code to fire a click event before FastClick does (issue #44). In that case, set the click-tracking flag back to false and return early. This will cause onTouchEnd to return early.
579
+ if (this.trackingClick) {
580
+ this.trackingClick = false;
581
+ return true;
582
+ }
583
+
584
+ // Programmatically generated events targeting a specific element should be permitted
585
+ if (!event.cancelable) {
586
+ return true;
587
+ }
588
+
589
+ // Very odd behaviour on iOS (issue #18): if a submit element is present inside a form and the user hits enter in the iOS simulator or clicks the Go button on the pop-up OS keyboard the a kind of 'fake' click event will be triggered with the submit-type input element as the target.
590
+ if (event.target.type === 'submit' && event.detail === 0) {
591
+ return true;
592
+ }
593
+
594
+ // Derive and check the target element to see whether the click needs to be permitted;
595
+ // unless explicitly enabled, prevent non-touch click events from triggering actions,
596
+ // to prevent ghost/doubleclicks.
597
+ if (!this.needsClick(oldTargetElement) || this.cancelNextClick) {
598
+ this.cancelNextClick = false;
599
+
600
+ // Prevent any user-added listeners declared on FastClick element from being fired.
601
+ if (event.stopImmediatePropagation) {
602
+ event.stopImmediatePropagation();
603
+ } else {
604
+
605
+ // Part of the hack for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2)
606
+ event.propagationStopped = true;
607
+ }
608
+
609
+ // Cancel the event
610
+ event.stopPropagation();
611
+ event.preventDefault();
612
+
613
+ return false;
614
+ }
615
+
616
+ // If clicks are permitted, return true for the action to go through.
617
+ return true;
618
+ };
619
+
620
+
621
+ /**
622
+ * Remove all FastClick's event listeners.
623
+ *
624
+ * @returns {void}
625
+ */
626
+ FastClick.prototype.destroy = function() {
627
+ 'use strict';
628
+ var layer = this.layer;
629
+
630
+ layer.removeEventListener('click', this.onClick, true);
631
+ layer.removeEventListener('touchstart', this.onTouchStart, false);
632
+ layer.removeEventListener('touchmove', this.onTouchMove, false);
633
+ layer.removeEventListener('touchend', this.onTouchEnd, false);
634
+ layer.removeEventListener('touchcancel', this.onTouchCancel, false);
635
+ };
636
+
637
+
638
+ if (typeof define !== 'undefined' && define.amd) {
639
+
640
+ // AMD. Register as an anonymous module.
641
+ define(function() {
642
+ 'use strict';
643
+ return FastClick;
644
+ });
645
+ }
646
+
647
+ if (typeof module !== 'undefined' && module.exports) {
648
+ module.exports = function(layer) {
649
+ 'use strict';
650
+ return new FastClick(layer);
651
+ };
652
+
653
+ module.exports.FastClick = FastClick;
654
+ }
@@ -1,4 +1,4 @@
1
1
  module RubyApp
2
- VERSION = "0.6.50"
2
+ VERSION = "0.6.51"
3
3
  ROOT = File.expand_path(File.dirname(__FILE__))
4
4
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: RubyApp
3
3
  version: !ruby/object:Gem::Version
4
- hash: 99
4
+ hash: 97
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 50
10
- version: 0.6.50
9
+ - 51
10
+ version: 0.6.51
11
11
  platform: ruby
12
12
  authors:
13
13
  - Frank G. Ficnar
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-01-09 00:00:00 Z
18
+ date: 2013-01-26 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  version_requirements: &id001 !ruby/object:Gem::Requirement
@@ -567,6 +567,7 @@ files:
567
567
  - lib/ruby_app/rack/session.rb
568
568
  - lib/ruby_app/request.rb
569
569
  - lib/ruby_app/resources/elements/mobile/document/document.js
570
+ - lib/ruby_app/resources/elements/mobile/document/fastclick.js
570
571
  - lib/ruby_app/resources/elements/mobile/document/jquery.ui.touch-punch.min.js
571
572
  - lib/ruby_app/resources/elements/mobile/platforms/ios/document/apple-touch-icon.png
572
573
  - lib/ruby_app/resources/elements/mobile/platforms/ios/document/apple-touch-icon.psd