Skip to content

Commit 73c2a36

Browse files
committed
bugfix Piggyback.add() how did I miss this...
1 parent e883587 commit 73c2a36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resource/modules/utils/Piggyback.jsm

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* License, v. 2.0. If a copy of the MPL was not distributed with this
33
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
44

5-
// VERSION 1.2.3
5+
// VERSION 1.2.4
66
Modules.UTILS = true;
77
Modules.BASEUTILS = true;
88

@@ -47,7 +47,7 @@ this.Piggyback = {
4747
var ids = aObj.__PiggybackIds ? aObj.__PiggybackIds.split(' ') : [];
4848

4949
// the same method can't be replaced more than once by the same aName (module)
50-
if(aObj[aId] && aObj[aId][aName] && aObj[aId][aName][aMethod]) { return; }
50+
if(aObj[aId] && aObj[aId].has(aName) && aObj[aId].get(aName).has(aMethod)) { return; }
5151

5252
var commander = aKeep || {
5353
master: aMaster,

0 commit comments

Comments
 (0)