inherit
173855
0
Apr 23, 2024 9:59:44 GMT -8
Texas
I check in every once in a while...
869
November 2011
petermaggio
|
Post by Texas on Jul 21, 2013 10:53:22 GMT -8
I'm trying to get my gold shop plugin to use the Peter's "monetary system" key instead of having it's own. I could try and do a workaround but the easiest thing to do would be to just overwrite some of the functions...So my question is would doing something like this pixeldepth.monetary.data = {new data} pixeldepth.monetary.get = new Function(){}
Would that actually rewrite those before they were called by his plugin, or would it be done afterwards and thus made null.
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Jul 21, 2013 13:02:48 GMT -8
Am not sure using the existing key is a good idea. You will be limiting my own use for it, and if the user removes your plugin there will be data hanging around in the key which wouldn't be good, as then I would have to do a clean up.
But feel free to if that's what you want to do, though I think it will cause more issues in the long run for you and me.
Some places you won't be able to overwrite the data or method in time as they are called instantly as the page is loading.
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Jul 21, 2013 13:32:01 GMT -8
It should be common practice to ASK an author if you are going to write a plugin that accesses key data from one of their plugins. that way the author can sign off on it.
along those lines it would be great if there was a way to declare a key private or public so only the plugin that it belongs to has write access to it (I know read access is moot since it is posted in source)
|
|
inherit
173855
0
Apr 23, 2024 9:59:44 GMT -8
Texas
I check in every once in a while...
869
November 2011
petermaggio
|
Post by Texas on Jul 21, 2013 15:57:23 GMT -8
I was going to ask. I just wanted to make sure it was possible before I asked. But it looks as if your saying it's not a good idea so I'll just keep it the way it is.
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Jul 21, 2013 16:28:34 GMT -8
Didnt mean for you to think I was attacking you, but it needs to be made clear to anyone making plugins that has to be a modicum of courtesy between each of us. we have to agree to sharing of each others work.
|
|
inherit
173855
0
Apr 23, 2024 9:59:44 GMT -8
Texas
I check in every once in a while...
869
November 2011
petermaggio
|
Post by Texas on Jul 21, 2013 18:03:46 GMT -8
Yes, I know. I understand, your just trying to make sure that we all aren't ruining others work. I was planning on asking, I just didn't know if it was possible, so I saw no point in asking till I new it was.
|
|