Skip to content

Commit

Permalink
add a touch folder in lib and test
Browse files Browse the repository at this point in the history
  • Loading branch information
peutetre committed May 2, 2014
1 parent 431d9ca commit b58ebe8
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"use strict";

var ClickButton = require('./click/button'),
TouchstartButton = require('./default/touchstart-button'),
TouchendButton = require('./default/touchend-button'),
TouchendOnScrollableYButton = require('./scrollable-y/touchend-button'),
TouchendOnScrollableXButton = require('./scrollable-x/touchend-button'),
TouchstartButton = require('./touch/default/touchstart-button'),
TouchendButton = require('./touch/default/touchend-button'),
TouchendOnScrollableYButton = require('./touch/scrollable-y/touchend-button'),
TouchendOnScrollableXButton = require('./touch/scrollable-x/touchend-button'),
touchable = 'ontouchstart' in window;

module.exports = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"use strict";

var Q = require('q'),
Button = require('./../button');
Button = require('./../../button');

var TouchendButton = function (options) {
Button.prototype.constructor.call(this, options);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"use strict";

var Q = require('q'),
Button = require('./../button');
Button = require('./../../button');

var TouchstartButton = function (options) {
Button.prototype.constructor.call(this, options);
Expand Down
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
*/

require('./test-button');
require('./default/test-touchstart-button');
require('./default/test-touchend-button');
require('./scrollable-x/test-touchend-button');
require('./scrollable-y/test-touchend-button');
require('./touch/default/test-touchstart-button');
require('./touch/default/test-touchend-button');
require('./touch/scrollable-x/test-touchend-button');
require('./touch/scrollable-y/test-touchend-button');

onload = function () {
setTimeout(function () {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var TouchendBtn = require('../../lib/default/touchend-button'),
var TouchendBtn = require('../../../lib/touch/default/touchend-button'),
Q = require('q'),
expect = require('expect.js'),
initElement = function () {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var TouchstartBtn = require('../../lib/default/touchstart-button'),
var TouchstartBtn = require('../../../lib/touch/default/touchstart-button'),
Q = require('q'),
expect = require('expect.js');

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var TouchendBtn = require('../../lib/scrollable-x/touchend-button'),
var TouchendBtn = require('../../../lib/touch/scrollable-x/touchend-button'),
Q = require('q'),
expect = require('expect.js'),
initElement = function () {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var TouchendBtn = require('../../lib/scrollable-y/touchend-button'),
var TouchendBtn = require('../../../lib/touch/scrollable-y/touchend-button'),
Q = require('q'),
expect = require('expect.js'),
initElement = function () {
Expand Down

0 comments on commit b58ebe8

Please sign in to comment.