Closed Bug 577622 Opened 15 years ago Closed 15 years ago

widget example in tutorial doesn't work

Categories

(Mozilla Labs Graveyard :: FlightDeck, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: GPHemsley, Assigned: dietrich)

References

()

Details

Attachments

(1 file)

The example in the tutorial doesn't actually work, and I'm told it has something to do with the way that the URL is specified. Here's the problematic code: var widgets = require("widget"); widgets.add(widgets.Widget({ label: "Visit The Mozilla Website", image: "http://www.mozilla.org/favicon.ico", onClick: function(event) { require("tabs").open(require("url").URL("http://www.mozilla.org")); }}));
fix the code, as well as the indentation probs.
Assignee: nobody → dietrich
Attachment #456640 - Flags: review?(zaloon)
(In reply to comment #1) > Created an attachment (id=456640) [details] > v1 - fix code error and indentation > > fix the code, as well as the indentation probs. In case there's any doubt, I can confirm that the new code works.
Summary: Example in tutorial doesn't work → widget example in tutorial doesn't work
github has a nice commit links: http://github.com/autonome/FlightDeck/commit/51d4caebde282507e9af23f219cbd5b4cb879139 pulled and pushed to http://github.com/zalun/FlightDeck PS. Please use a separate branch for every fix as I had to pull two fixes at once. I will write a small docs about branching in git
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Attachment #456640 - Flags: review?(zaloon) → review+
Product: Mozilla Labs → Mozilla Labs Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: