From 98c83012234feb1c05667f4b4df2c66f688b1c15 Mon Sep 17 00:00:00 2001 From: Guille Paz Date: Wed, 8 Apr 2015 10:05:07 -0300 Subject: [PATCH] Release v0.1.6 --- README.md | 2 +- bower.json | 2 +- component.json | 2 +- dist/slideout.js | 2 +- package.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index cd40cb1..40c53c1 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ $ spm install slideout - $ bower install https://github.com/Mango/slideout.git + $ bower install slideout.js $ component install mango/slideout diff --git a/bower.json b/bower.json index bb52470..e531b05 100644 --- a/bower.json +++ b/bower.json @@ -3,7 +3,7 @@ "repository": "git@github.com:mango/slideout.git", "description": "A touch slideout navigation menu for your mobile web apps.", "author": "Guille Paz ", - "version": "0.1.5", + "version": "0.1.6", "dependencies": { "decouple": "0.0.1" }, diff --git a/component.json b/component.json index a24424c..e89f9a3 100644 --- a/component.json +++ b/component.json @@ -3,7 +3,7 @@ "repo": "mango/slideout", "description": "A touch slideout navigation menu for your mobile web apps.", "author": "Guille Paz ", - "version": "0.1.5", + "version": "0.1.6", "twitter": "@mango", "keywords": [ "slideout", diff --git a/dist/slideout.js b/dist/slideout.js index 15e6e59..2625067 100644 --- a/dist/slideout.js +++ b/dist/slideout.js @@ -271,4 +271,4 @@ module.exports = decouple; },{}]},{},[1])(1) }); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlc1xcYnJvd3NlcmlmeVxcbm9kZV9tb2R1bGVzXFxicm93c2VyLXBhY2tcXF9wcmVsdWRlLmpzIiwiaW5kZXguanMiLCJub2RlX21vZHVsZXNcXGRlY291cGxlXFxpbmRleC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtBQ0FBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7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bmcgPSBmYWxzZTtcblxuICBmdW5jdGlvbiBjYXB0dXJlRXZlbnQoZSkge1xuICAgIGV2ZSA9IGU7XG4gICAgdHJhY2soKTtcbiAgfVxuXG4gIGZ1bmN0aW9uIHRyYWNrKCkge1xuICAgIGlmICghdHJhY2tpbmcpIHtcbiAgICAgIHJlcXVlc3RBbmltRnJhbWUodXBkYXRlKTtcbiAgICAgIHRyYWNraW5nID0gdHJ1ZTtcbiAgICB9XG4gIH1cblxuICBmdW5jdGlvbiB1cGRhdGUoKSB7XG4gICAgZm4uY2FsbChub2RlLCBldmUpO1xuICAgIHRyYWNraW5nID0gZmFsc2U7XG4gIH1cblxuICBub2RlLmFkZEV2ZW50TGlzdGVuZXIoZXZlbnQsIGNhcHR1cmVFdmVudCwgZmFsc2UpO1xufVxuXG4vKipcbiAqIEV4cG9zZSBkZWNvdXBsZVxuICovXG5tb2R1bGUuZXhwb3J0cyA9IGRlY291cGxlO1xuIl19 diff --git a/package.json b/package.json index b706ed9..b8a8f04 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "repository": "git@github.com:mango/slideout.git", "description": "A touch slideout navigation menu for your mobile web apps.", "author": "Guille Paz ", - "version": "0.1.5", + "version": "0.1.6", "scripts": { "build": "node browserify.js", "test": "npm run build && node_modules/.bin/_mocha",