Permalink
Browse files

Removed client singleton pattern.

Deprecated lots of functions related to the v2.x API; details in Issue #289.

Fixes #90.
  • Loading branch information...
JamesMGreene committed Jan 1, 2014
1 parent 2a632d6 commit b2ecc115b4d8adca4ce4114b4e026c736f3de62c
View
@@ -42,8 +42,8 @@ module.exports = function(grunt) {
'src/javascript/start.js',
'src/javascript/ZeroClipboard/state.js',
'src/javascript/ZeroClipboard/utils.js',
- 'src/javascript/ZeroClipboard/client.js',
'src/javascript/ZeroClipboard/flash.js',
+ 'src/javascript/ZeroClipboard/client.js',
'src/javascript/ZeroClipboard/core.js',
'src/javascript/ZeroClipboard/dom.js',
'src/javascript/ZeroClipboard/event.js',
View
@@ -1,5 +1,5 @@
The MIT License (MIT)
-Copyright (c) 2013 Jon Rohan, James M. Greene
+Copyright (c) 2014 Jon Rohan, James M. Greene
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
View
@@ -2,6 +2,7 @@
The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible [Adobe Flash](http://en.wikipedia.org/wiki/Adobe_Flash) movie and a [JavaScript](http://en.wikipedia.org/wiki/JavaScript) interface. The "Zero" signifies that the library is invisible and the user interface is left entirely up to you.
+
## Simple Example
``` html
@@ -35,48 +36,36 @@ See the [instructions](docs/instructions.md) for more advanced options in using
Here is a working [test page](http://zeroclipboard.org/#demo) where you can try out ZeroClipboard in your browser.
-## Testing ZeroClipboard.swf Locally
+
+## Testing ZeroClipboard Locally
To test the page [demo page](http://zeroclipboard.org/#demo) locally, clone the [website repo](https://github.com/zeroclipboard/zeroclipboard.org).
+
## Support
This library is fully compatible with Flash Player 10, which requires that the clipboard copy operation be initiated by a user click event inside the Flash movie. This is achieved by automatically floating the invisible movie on top of a [DOM](http://en.wikipedia.org/wiki/Document_Object_Model) element of your choice. Standard mouse events are even propagated out to your DOM element, so you can still have rollover and mouse down effects.
Works in IE7+ and all of the evergreen browsers.
+
## Contributing
see [CONTRIBUTING.md](CONTRIBUTING.md)
-## Known issues
-
-- Can not have different handlers for different instances of ZeroClipboard ([#90](https://github.com/zeroclipboard/zeroclipboard/issues/90))
-
-```js
-var clip1 = new ZeroClipboard(document.getElementById("copy-button-1"));
-clip1.on('complete', function() {
- console.log('Copy button 1');
-});
-var clip2 = new ZeroClipboard(document.getElementById("copy-button-2"));
-clip2.on('complete', function() {
- console.log('Copy button 2');
-});
-
-// click on copy-button-1 -> "Copy button 1"
-// click on copy-button-2 -> "Copy button 1"
-```
## Releases
Starting with version [1.1.7](https://github.com/zeroclipboard/zeroclipboard/releases/tag/v1.1.7), ZeroClipboard uses [semantic versioning](http://semver.org/).
see [releases](https://github.com/zeroclipboard/zeroclipboard/releases)
+
## Roadmap
see [roadmap.md](docs/roadmap.md)
+
## Last Build
[![Build Status](https://secure.travis-ci.org/zeroclipboard/zeroclipboard.png?branch=master)](https://travis-ci.org/zeroclipboard/zeroclipboard)
Oops, something went wrong.

0 comments on commit b2ecc11

Please sign in to comment.