Skip to content

Commit a6f6e25

Browse files
committed
Remove legacy "classid", conflicts with Chrome
1 parent 17ebc99 commit a6f6e25

File tree

7 files changed

+18
-33
lines changed

7 files changed

+18
-33
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if (ReactSWF.isFPVersionSupported('10.0')) {
2020

2121
## Installation
2222

23-
#### Universal script [(minified)](//raw.githubusercontent.com/syranide/react-swf/v0.9.0/react-swf.min.js) [(source)](//raw.githubusercontent.com/syranide/react-swf/v0.9.0/react-swf.js)
23+
#### Universal script [(minified)](//raw.githubusercontent.com/syranide/react-swf/v0.9.1/react-swf.min.js) [(source)](//raw.githubusercontent.com/syranide/react-swf/v0.9.1/react-swf.js)
2424

2525
```
2626
<!-- Global module -->

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-swf",
3-
"version": "0.9.0",
3+
"version": "0.9.1",
44
"license": "MIT",
55
"description": "Shockwave Flash Player component for React",
66
"authors": ["Andreas Svensson <[email protected]>"],

npm-react-swf/package.json

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
22
"name": "react-swf",
3-
"version": "0.9.0",
4-
"author": "Andreas Svensson <[email protected]>",
3+
"version": "0.9.1",
4+
"license": "MIT",
55
"description": "Shockwave Flash Player component for React",
6+
"author": "Andreas Svensson <[email protected]>",
67
"homepage": "https://github.com/syranide/react-swf",
78
"bugs": "https://github.com/syranide/react-swf/issues",
8-
"license": "MIT",
9+
"main": "npm-react-swf/react-swf.js",
910
"repository": {
1011
"type": "git",
1112
"url": "https://github.com/syranide/react-swf"
@@ -20,9 +21,5 @@
2021
"player",
2122
"object",
2223
"embed"
23-
],
24-
"engines": {
25-
"node": ">=0.10.0"
26-
},
27-
"main": "react-swf.js"
24+
]
2825
}

npm-react-swf/react-swf.js

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! react-swf v0.9.0 | @syranide | MIT license */
1+
/*! react-swf v0.9.1 | @syranide | MIT license */
22

33
'use strict';
44

@@ -12,7 +12,7 @@ var paramsSupportedByFP = {
1212
'allowScriptAccess': 0, // always, sameDomain, never
1313

1414
'align': 0, // l, t, r
15-
'base': 0, // "[url]"
15+
'base': 0, // url
1616
'bgcolor': 0, // #RRGGBB
1717
'fullScreenAspectRatio': 0, // portrait, landscape
1818
'loop': 1, // true*, false
@@ -213,7 +213,7 @@ var ReactSWF = React.createClass({
213213

214214
componentWillUnmount: function() {
215215
// IE8 leaks nodes if AS3 ExternalInterface.addCallback-functions remain.
216-
if (document.documentMode <= 8) {
216+
if (document.documentMode < 9) {
217217
var node = this.getDOMNode();
218218

219219
// Node-methods are not enumerable in IE8, but properties are.
@@ -235,13 +235,7 @@ var ReactSWF = React.createClass({
235235

236236
var objectProps = {
237237
type: mimeTypeForFP,
238-
// Not supported until next React release.
239-
classID: 'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000',
240-
data: state.src,
241-
242-
// Temporary until React 0.12 release.
243-
ref: null,
244-
key: null
238+
data: state.src
245239
};
246240

247241
for (var key in props) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-swf",
3-
"version": "0.9.0",
3+
"version": "0.9.1",
44
"license": "MIT",
55
"description": "Shockwave Flash Player component for React",
66
"author": "Andreas Svensson <[email protected]>",

react-swf.js

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! react-swf v0.9.0 | @syranide | MIT license */
1+
/*! react-swf v0.9.1 | @syranide | MIT license */
22

33
(function(root, factory) {
44
if (typeof define === 'function' && define.amd) {
@@ -21,7 +21,7 @@
2121
'allowScriptAccess': 0, // always, sameDomain, never
2222

2323
'align': 0, // l, t, r
24-
'base': 0, // "[url]"
24+
'base': 0, // url
2525
'bgcolor': 0, // #RRGGBB
2626
'fullScreenAspectRatio': 0, // portrait, landscape
2727
'loop': 1, // true*, false
@@ -222,7 +222,7 @@
222222

223223
componentWillUnmount: function() {
224224
// IE8 leaks nodes if AS3 ExternalInterface.addCallback-functions remain.
225-
if (document.documentMode <= 8) {
225+
if (document.documentMode < 9) {
226226
var node = this.getDOMNode();
227227

228228
// Node-methods are not enumerable in IE8, but properties are.
@@ -244,13 +244,7 @@
244244

245245
var objectProps = {
246246
type: mimeTypeForFP,
247-
// Not supported until next React release.
248-
classID: 'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000',
249-
data: state.src,
250-
251-
// Temporary until React 0.12 release.
252-
ref: null,
253-
key: null
247+
data: state.src
254248
};
255249

256250
for (var key in props) {

react-swf.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)