Skip to content

Commit

Permalink
Added global.hproseFlashPath support
Browse files Browse the repository at this point in the history
  • Loading branch information
andot committed Nov 7, 2016
1 parent 34aaaa7 commit c3bde4f
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"author": "Ma Bingyao <[email protected]>",
"name": "hprose",
"version": "2.0.18",
"version": "2.0.19",
"description": "Hprose is a High Performance Remote Object Service Engine.",
"keywords": [
"hprose",
Expand Down
4 changes: 2 additions & 2 deletions dist/hprose.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/hprose.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/hprose.src.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Hprose for JavaScript v2.0.18
// Hprose for JavaScript v2.0.19
// Copyright (c) 2008-2016 http://hprose.com
// Hprose is freely distributable under the MIT license.
// For all details and documentation:
Expand Down Expand Up @@ -5866,7 +5866,7 @@
* *
* POST data to HTTP Server (using Flash). *
* *
* LastModified: Oct 23, 2016 *
* LastModified: Nov 7, 2016 *
* Author: Ma Bingyao <[email protected]> *
* *
\**********************************************************/
Expand All @@ -5892,7 +5892,7 @@
// get flash path
var document = global.document;
var scripts = document.getElementsByTagName('script');
var flashpath = scripts[scripts.length - 1].getAttribute('flashpath') || '';
var flashpath = scripts[scripts.length - 1].getAttribute('flashpath') || global.hproseFlashPath || '';
scripts = null;

// static private members
Expand Down
4 changes: 2 additions & 2 deletions example/hprose.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "hprose-js",
"filename": "hprose.js",
"version": "2.0.18",
"version": "2.0.19",
"description": "Hprose is a High Performance Remote Object Service Engine.",
"homepage": "https://github.com/hprose",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/CopyRight.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Hprose for JavaScript v2.0.18
// Hprose for JavaScript v2.0.19
// Copyright (c) 2008-2016 http://hprose.com
// Hprose is freely distributable under the MIT license.
// For all details and documentation:
Expand Down
4 changes: 2 additions & 2 deletions src/FlashHttpRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* *
* POST data to HTTP Server (using Flash). *
* *
* LastModified: Oct 23, 2016 *
* LastModified: Nov 7, 2016 *
* Author: Ma Bingyao <[email protected]> *
* *
\**********************************************************/
Expand All @@ -39,7 +39,7 @@
// get flash path
var document = global.document;
var scripts = document.getElementsByTagName('script');
var flashpath = scripts[scripts.length - 1].getAttribute('flashpath') || '';
var flashpath = scripts[scripts.length - 1].getAttribute('flashpath') || global.hproseFlashPath || '';
scripts = null;

// static private members
Expand Down
4 changes: 2 additions & 2 deletions test/hprose.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c3bde4f

Please sign in to comment.