Closed Bug 765525 Opened 12 years ago Closed 12 years ago

api-utils/window/utils examples doesn't work

Categories

(Add-on SDK Graveyard :: Documentation, defect, P1)

x86_64
Windows 8
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: KWierso, Unassigned)

References

()

Details

Attachments

(1 file)

The example code shown for the getXULWindow function doesn't run.
I get this in the error console:
Timestamp: 6/16/2012 7:53:12 PM
Error: TypeError: utils.getXULWindow is not a function
Source File: resource://jid0-fnfleja5bsmys7kbina6micun6s-at-jetpack/api-utils/lib/cuddlefish.js
Line: 250

My code I'm using: https://builder.addons.mozilla.org/addon/1059370/latest/
Looks like getBaseWindow() is also undefined: 
Timestamp: 6/16/2012 7:54:59 PM
Error: TypeError: utils.getBaseWindow is not a function
Source File: resource://jid0-xhbdanfwtyfdhbhmyss9zclltwi-at-jetpack/api-utils/lib/cuddlefish.js
Line: 250

https://builder.addons.mozilla.org/addon/1059371/latest/
Summary: api-utils/window/utils getXULWindow() example doesn't work → api-utils/window/utils examples doesn't work
Attachment #635391 - Flags: review?(wbamberg) → review+
Commit pushed to master at https://github.com/mozilla/addon-sdk

https://github.com/mozilla/addon-sdk/commit/f0b4995284f2a945b7296fa58f483ec86fe02ce0
Merge pull request #472 from Gozala/bug/window-utils-docs@765525

Bug 765525 - api-utils/window/utils examples doesn't work r=@wbamberg
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: