From 6bbc988acebcbc5c810e83ee12e506e6bd45dbae Mon Sep 17 00:00:00 2001 From: Marc Laval Date: Tue, 5 Aug 2014 14:16:28 +0200 Subject: [PATCH] adds custom attributes Close #257 --- .gitignore | 1 + build/grunt/docs.js | 5 +- docs/playground/index.md | 1 + docs/samples/gestures/gestures.hsp | 2 + gruntfile.js | 26 +++- hsp/gestures/doubleTap.js | 3 +- hsp/gestures/drag.js | 3 +- hsp/gestures/gesture.js | 17 ++- hsp/gestures/gestures.js | 105 ------------- hsp/gestures/index.js | 7 + hsp/gestures/longPress.js | 3 +- hsp/gestures/pinch.js | 3 +- hsp/gestures/singleTap.js | 3 +- hsp/gestures/swipe.js | 3 +- hsp/gestures/tap.js | 3 +- hsp/rt.js | 58 ++++++++ hsp/rt/$root.js | 1 + hsp/rt/eltnode.js | 123 +++++++++++++-- hsp/rt/tnode.js | 12 ++ test/gestures/doubleTap.spec.hsp | 1 + test/gestures/drag.spec.hsp | 1 + test/gestures/longPress.spec.hsp | 1 + test/gestures/pinch.spec.hsp | 1 + test/gestures/singleTap.spec.hsp | 1 + test/gestures/swipe.spec.hsp | 1 + test/gestures/tap.spec.hsp | 29 ++++ test/rt/customAttributes.spec.hsp | 231 +++++++++++++++++++++++++++++ test/rt/index.html | 1 + 28 files changed, 507 insertions(+), 139 deletions(-) delete mode 100644 hsp/gestures/gestures.js create mode 100644 hsp/gestures/index.js create mode 100644 test/rt/customAttributes.spec.hsp diff --git a/.gitignore b/.gitignore index 2af6f81..db56709 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ /node_modules /dist /sauce_connect.log +/npm-debug.log /sc.log /test-results /tmp diff --git a/build/grunt/docs.js b/build/grunt/docs.js index 3ab69c0..2da1aa0 100644 --- a/build/grunt/docs.js +++ b/build/grunt/docs.js @@ -262,7 +262,8 @@ module.exports = function(grunt) { hspRoot = grunt.config('hspserver.base')+"/hsp", emptyJsResponse = function(req, res) { res.set('Content-Type', 'application/x-javascript'); return res.send(""); }, compilerPath = '/dist/' + VERSION + '/hashspace-noder-compiler.min.js', - runtimePath = '/dist/' + VERSION + '/hashspace-noder.min.js'; + runtimePath = '/dist/' + VERSION + '/hashspace-noder.min.js', + gesturesPath = '/dist/' + VERSION + '/hashspace-noder-gestures.min.js'; grunt.log.subhead('Local website setup'); grunt.log.writeln('Starting local documentation web server...'); @@ -287,6 +288,8 @@ module.exports = function(grunt) { grunt.verbose.ok(compilerPath, 'polyfilled to be empty'); app.get(runtimePath, emptyJsResponse); grunt.verbose.ok(runtimePath, 'polyfilled to be empty'); + app.get(gesturesPath, emptyJsResponse); + grunt.verbose.ok(gesturesPath, 'polyfilled to be empty'); // Proxying /test and /node_modules folders app.use('/test', function(req, res, next) { diff --git a/docs/playground/index.md b/docs/playground/index.md index ac09d49..d3c6d5b 100644 --- a/docs/playground/index.md +++ b/docs/playground/index.md @@ -19,6 +19,7 @@ footerscripts: | } +