Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Commit

Permalink
Reverting the 'cacheBust' option default back to 'true'.
Browse files Browse the repository at this point in the history
Fixes #357.
  • Loading branch information
JamesMGreene committed Mar 22, 2014
1 parent a8f2de9 commit 8fc7bf5
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 14 deletions.
6 changes: 3 additions & 3 deletions ZeroClipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Copyright (c) 2014 Jon Rohan, James M. Greene
* Licensed MIT
* http://zeroclipboard.org/
* v1.3.4
* v1.3.5
*/
(function(window) {
"use strict";
Expand Down Expand Up @@ -544,11 +544,11 @@
}
return clients;
};
ZeroClipboard.version = "1.3.4";
ZeroClipboard.version = "1.3.5";
var _globalConfig = {
swfPath: _swfPath,
trustedDomains: window.location.host ? [ window.location.host ] : [],
cacheBust: /MSIE/.test(navigator.userAgent) || /Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/.test(navigator.userAgent) ? true : false,
cacheBust: true,
forceHandCursor: false,
zIndex: 999999999,
debug: true,
Expand Down
4 changes: 2 additions & 2 deletions ZeroClipboard.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "zeroclipboard",
"description": "The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.",
"version": "1.3.4",
"version": "1.3.5",
"main": ["./ZeroClipboard.js", "./ZeroClipboard.swf"],
"keywords": ["flash","clipboard","copy","cut","paste","zclip","clip","clippy"],
"license": "https://github.com/zeroclipboard/zeroclipboard/blob/master/LICENSE",
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "zeroclipboard/zeroclipboard",
"description": "The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.",
"version": "1.3.4",
"version": "1.3.5",
"type": "library",
"keywords": ["flash","clipboard","copy","cut","paste","zclip","clip","clippy"],
"license": "MIT",
Expand Down
5 changes: 2 additions & 3 deletions docs/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,8 @@ var _globalConfig = {
// SWF inbound scripting policy: page domains that the SWF should trust. (single string or array of strings)
trustedDomains: [window.location.host],

// Include a "nocache" query parameter on requests for the SWF.
// Default to `true` for IE, otherwise `false`.
cacheBust: /MSIE/.test(navigator.userAgent) || /Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/.test(navigator.userAgent) ? true : false,
// Include a "nocache" query parameter on requests for the SWF
cacheBust: true,

// Forcibly set the hand cursor ("pointer") for all clipped elements
forceHandCursor: false,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "zeroclipboard",
"title": "ZeroClipboard",
"version": "1.3.4",
"version": "1.3.5",
"description": "The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.",
"keywords": [
"flash",
Expand Down
5 changes: 2 additions & 3 deletions src/javascript/ZeroClipboard/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ var _globalConfig = {
// SWF inbound scripting policy: page domains that the SWF should trust. (single string or array of strings)
trustedDomains: window.location.host ? [window.location.host] : [],

// Include a "nocache" query parameter on requests for the SWF.
// Default to `true` for IE, otherwise `false`.
cacheBust: /MSIE/.test(navigator.userAgent) || /Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/.test(navigator.userAgent) ? true : false,
// Include a "nocache" query parameter on requests for the SWF
cacheBust: true,

// Forcibly set the hand cursor ("pointer") for all clipped elements
forceHandCursor: false,
Expand Down

0 comments on commit 8fc7bf5

Please sign in to comment.