Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Inline getAbsolutePath.

  • Loading branch information...
commit 30d4b01c31f2ce1dc2b98cf8e961293b4bbacc83 1 parent 4ec2b89
@mbebenita mbebenita authored
Showing with 2 additions and 6 deletions.
  1. +2 −6 src/flash/net/SharedObject.js
View
8 src/flash/net/SharedObject.js
@@ -4,15 +4,11 @@ var SharedObjectDefinition = (function () {
var sharedObjects = Object.create(null);
- function getAbsolutePath(path, name) {
- return path + "/" + name;
- }
-
return {
// ()
__class__: "flash.net.SharedObject",
initialize: function () {
-
+
},
__glue__: {
native: {
@@ -24,7 +20,7 @@ var SharedObjectDefinition = (function () {
notImplemented("SharedObject.getDiskUsage");
},
getLocal: function getLocal(name, localPath, secure) { // (name:String, localPath:String = null, secure:Boolean = false) -> SharedObject
- var path = getAbsolutePath(name, localPath);
+ var path = localPath + "/" + name;
return sharedObjects[path] || (sharedObjects[path] = new flash.net.SharedObject());
},
getRemote: function getRemote(name, remotePath, persistence, secure) { // (name:String, remotePath:String = null, persistence:Object = false, secure:Boolean = false) -> SharedObject
Please sign in to comment.
Something went wrong with that request. Please try again.