Commit Graph

231 Commits

Author SHA1 Message Date
Zeno Rocha
b5bc00f2e4 Release v1.3.0 2015-09-29 10:17:15 -07:00
Zeno Rocha
ffb2b3fcd9 Merge pull request #16 from mauriciosoares/feature/umd-support
Adds UMD support
2015-09-29 10:14:23 -07:00
Zeno Rocha
a4a68d8774 Merge pull request #14 from yannickoo/patch-2
Fix anchor links to demo
2015-09-29 08:01:32 -07:00
Mauricio Soares
05a807e2fb Adds UMD support
Using the --standalone option from browserify it automatically wrap your code into a UMD module.
2015-09-29 11:09:28 -03:00
Yannick
0102dd6453 fixes anchor links in readme file 2015-09-29 10:23:37 +02:00
Zeno Rocha
84d1949718 Merge pull request #11 from SpazzMarticus/master
Added unminified dist/clipboard.js
2015-09-29 00:00:18 -07:00
Zeno Rocha
b80f9f8aae Release v1.2.0 2015-09-28 23:56:45 -07:00
Zeno Rocha
2aff9ab55a Adds advanced usage docs 2015-09-28 23:54:56 -07:00
Zeno Rocha
194bf6aeb3 Source formatting 2015-09-28 23:54:34 -07:00
SpazzMarticus
fe6c408e48 Built dist/clipboard.js via npm run publish 2015-09-29 08:45:29 +02:00
SpazzMarticus
1d74794565 Publish-script builds dist/clipboard.js and minifies it to dist/clipboard.min.js 2015-09-29 08:43:23 +02:00
Zeno Rocha
1f61e16eb5 Fails silently in favor of speed 2015-09-28 21:59:18 -07:00
Zeno Rocha
775e4b898d Source formatting 2015-09-28 21:56:29 -07:00
Zeno Rocha
56bac2ce09 Release v1.1.0 2015-09-28 21:38:36 -07:00
Eduardo Lundgren
f34bf8eabe Update README.md 2015-09-29 01:28:59 -03:00
Eduardo Lundgren
b842987292 Adds support to set action/target/text via function 2015-09-29 01:15:21 -03:00
Eduardo Lundgren
beab7bc087 Changes target to support selector instead of id 2015-09-28 23:37:58 -03:00
Zeno Rocha
1ce64f39a2 Merge pull request #6 from mauriciosoares/rename-data-attributes
Rename data attributes to prefix "clipboard"
2015-09-28 10:12:53 -07:00
Mauricio Soares
40e6ac9674 run publish command 2015-09-28 14:08:34 -03:00
Mauricio Soares
157b0fb5a2 Rename data-attributes to prefix "clipboard"
This PR renames all the data-attributes for data-clipboard-X, this is due the possibility of conflict with projects that already uses these data-attributes.
2015-09-28 14:06:22 -03:00
Zeno Rocha
d5a4ba1ff0 Updates headline 2015-09-27 16:55:31 -07:00
Zeno Rocha
a9c50a74fa Adds Travis CI 2015-09-27 16:40:50 -07:00
Zeno Rocha
b0e118f750 Improves test coverage 2015-09-27 11:53:52 -07:00
Zeno Rocha
467684333f Moves from Node's require to ES6's import syntax 2015-09-26 17:31:18 -07:00
Zeno Rocha
1acd23049e Asserts error messages on tests 2015-09-26 09:26:54 -07:00
Zeno Rocha
abeee82bdc Throws error if either data-target or data-text were passed and throws error if neither data-target nor data-text were passed too 2015-09-26 09:25:15 -07:00
Zeno Rocha
ce7b9652c7 Includes .bind(this) polyfill for PhantomJS 2015-09-26 09:08:01 -07:00
Zeno Rocha
bb60a866b2 Fixes tests 2015-09-26 07:32:27 -07:00
Zeno Rocha
e3f69de585 Renames host argument to emitter 2015-09-26 07:31:59 -07:00
Zeno Rocha
aa6cc8e4df Merge branch 'master' of https://github.com/jaydson/clipboard.js into jaydson-master 2015-09-25 00:39:30 -07:00
Zeno Rocha
8d2fb2c08b Updates documentation 2015-09-25 00:31:45 -07:00
Zeno Rocha
1ac258dea5 Moves to a better delegate library 2015-09-24 22:23:15 -07:00
Zeno Rocha
34c798851d Only removes the fake element after another click event, that way an user can hit Ctrl+C to copy because selection still exists 2015-09-24 21:25:37 -07:00
Zeno Rocha
076e3b8a64 Destroys the previous ClipboardAction instance whenever a new click is triggered 2015-09-24 21:24:21 -07:00
Zeno Rocha
3610bfa08c Emits event on base class instead of each element for better performance 2015-09-24 18:19:40 -07:00
Zeno Rocha
ced945f11a Replaces every single event listener in favor of event delegation 2015-09-24 17:02:33 -07:00
Zeno Rocha
540038e2ad Adds documentation for each block 2015-09-24 16:18:50 -07:00
Zeno Rocha
1febe4eecc Adds karma test suite 2015-09-24 15:11:56 -07:00
Zeno Rocha
56dd1aac22 Handles attributes with getters/setters and breaks code into two classes 2015-09-24 15:11:11 -07:00
Zeno Rocha
e72ce02c87 Clears selection only if operation succeeded 2015-09-23 10:54:18 -07:00
Zeno Rocha
dedfbffe05 Fixes selection on non-editable elements 2015-09-22 23:32:04 -07:00
Jaydson Gomes
ba417cf53d Update Internet Explorer logo
Firefox logo was duplicated, just changed to the right IE logo.
2015-09-23 01:12:19 -03:00
Zeno Rocha
fbb2a316bf Removes fake element from screen instead making it transparent 2015-09-22 09:59:15 -07:00
Zeno Rocha
b4a748f89f Uses template string instead of concat strings 2015-09-22 08:33:34 -07:00
Zeno Rocha
e2b9ba69a6 Updates browser logos 2015-09-22 08:32:48 -07:00
Zeno Rocha
706d55504b Adds the why 2015-09-21 12:44:16 -07:00
Zeno Rocha
90878d90c4 Updates snippets to be the same as actual demos 2015-09-21 11:04:48 -07:00
Zeno Rocha
c92c4e545a Removes "no-support" event in favor of "error" and "copy/cut" in favor of "success" 2015-09-21 10:32:11 -07:00
Eduardo Lundgren
23b20d6006 Uses optimistic execCommand and removes redundant logic - Fixes #1 2015-09-21 09:39:41 -07:00
Zeno Rocha
f3c042a364 Only fire detailed events if copy was successful 2015-09-21 01:15:01 -07:00