Closed
Bug 577622
Opened 15 years ago
Closed 15 years ago
widget example in tutorial doesn't work
Categories
(Mozilla Labs Graveyard :: FlightDeck, defect)
Mozilla Labs Graveyard
FlightDeck
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: GPHemsley, Assigned: dietrich)
References
()
Details
Attachments
(1 file)
|
728 bytes,
patch
|
dietrich
:
review+
|
Details | Diff | Splinter Review |
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"));
}}));
| Assignee | ||
Comment 1•15 years ago
|
||
fix the code, as well as the indentation probs.
Assignee: nobody → dietrich
Attachment #456640 -
Flags: review?(zaloon)
| Reporter | ||
Comment 2•15 years ago
|
||
(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.
| Assignee | ||
Updated•15 years ago
|
Summary: Example in tutorial doesn't work → widget example in tutorial doesn't work
Comment 3•15 years ago
|
||
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
| Assignee | ||
Updated•15 years ago
|
Attachment #456640 -
Flags: review?(zaloon) → review+
You need to log in
before you can comment on or make changes to this bug.
Description
•