Keyboard Shortcuts

File
u :up to issue
m :publish + mail comments
M :edit review message
j / k :jump to file after / before current file
J / K :jump to next file with a comment after / before current file
Side-by-side diff
i :toggle intra-line diffs
e :expand all comments
c :collapse all comments
s :toggle showing all comments
n / p :next / previous diff chunk or comment
N / P :next / previous comment
<Up> / <Down> :next / previous line
<Enter> :respond to / edit current comment
d :mark current comment as done
Issue
u :up to list of issues
m :publish + mail comments
j / k :jump to patch after / before current patch
o / <Enter> :open current patch in side-by-side view
i :open current patch in unified diff view
Issue List
j / k :jump to issue after / before current issue
o / <Enter> :open current issue
# : close issue
Comment/message editing
<Ctrl> + s or <Ctrl> + Enter :save comment
<Esc> :cancel edit
Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(38)
Issues Repositories Search
Open Issues | Closed Issues | All Issues | Sign in with your Google Account to create issues and add comments

Issue 6498135: code review 6498135: playground: use HTML5 History on share, to update URL i...

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 4 months ago by sanjay.m
Modified:
13 years, 4 months ago
Reviewers:
adg
CC:
golang-dev, adg
Visibility:
Public.
playground: use HTML5 History on share, to update URL in browser UI

Patch Set 1 #

Patch Set 2 : diff -r 781fa4f5d565 https://code.google.com/p/go-playground/ #

Patch Set 3 : diff -r 781fa4f5d565 https://code.google.com/p/go-playground/ #

Patch Set 4 : diff -r 781fa4f5d565 https://code.google.com/p/go-playground/ #

Total comments: 10

Patch Set 5 : diff -r 781fa4f5d565 https://code.google.com/p/go-playground/ #

Total comments: 1
Created: 13 years, 4 months ago
Download [raw] [tar.bz2]
Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -5 lines) Patch
M goplay/edit.html View 1 1 chunk +2 lines, -1 line 0 comments Download
M static/playground.js View 1 2 3 4 4 chunks +47 lines, -4 lines 1 comment Download
Total messages: 8
|
sanjay.m
Hello golang-dev@googlegroups.com (cc: adg@golang.org, golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go-playground/
13 years, 4 months ago (2012年09月16日 00:24:47 UTC) #1
Hello golang-dev@googlegroups.com (cc: adg@golang.org,
golang-dev@googlegroups.com),
I'd like you to review this change to
https://code.google.com/p/go-playground/ 
Sign in to reply to this message.
sanjay.m
Hello golang-dev@googlegroups.com (cc: adg@golang.org, golang-dev@googlegroups.com), Please take another look.
13 years, 4 months ago (2012年09月16日 00:25:16 UTC) #2
Hello golang-dev@googlegroups.com (cc: adg@golang.org,
golang-dev@googlegroups.com),
Please take another look.
Sign in to reply to this message.
adg
Looks pretty good. http://codereview.appspot.com/6498135/diff/8001/static/playground.js File static/playground.js (right): http://codereview.appspot.com/6498135/diff/8001/static/playground.js#newcode19 static/playground.js:19: // these checks also suggest we ...
13 years, 4 months ago (2012年09月16日 06:05:40 UTC) #3
Looks pretty good.
http://codereview.appspot.com/6498135/diff/8001/static/playground.js
File static/playground.js (right):
http://codereview.appspot.com/6498135/diff/8001/static/playground.js#newcode19
static/playground.js:19: // these checks also suggest we have addEventListener
why not check also? it's shorter than the comment and will always be correct
http://codereview.appspot.com/6498135/diff/8001/static/playground.js#newcode20
static/playground.js:20: if (window.history && window.history.pushState &&
!!opts['enableHistory']) {
is the !! necessary?
http://codereview.appspot.com/6498135/diff/8001/static/playground.js#newcode20
static/playground.js:20: if (window.history && window.history.pushState &&
!!opts['enableHistory']) {
put this if statement after the two function declarations that it references.
http://codereview.appspot.com/6498135/diff/8001/static/playground.js#newcode27
static/playground.js:27: function inputChanged() {
Please make this function also hide shareEl, so that the user doesn't keep
seeing an out-of-date share url.
http://codereview.appspot.com/6498135/diff/8001/static/playground.js#newcode41
static/playground.js:41: setBody(e.state.code);
also this should be below setBody. I know js let's you call declarations that
haven't been made yet, but the results can be surprising. let's keep it in order
please
Sign in to reply to this message.
sanjay.m
PTAL https://codereview.appspot.com/6498135/diff/8001/static/playground.js File static/playground.js (right): https://codereview.appspot.com/6498135/diff/8001/static/playground.js#newcode19 static/playground.js:19: // these checks also suggest we have addEventListener ...
13 years, 4 months ago (2012年09月16日 06:50:49 UTC) #4
PTAL
https://codereview.appspot.com/6498135/diff/8001/static/playground.js
File static/playground.js (right):
https://codereview.appspot.com/6498135/diff/8001/static/playground.js#newcode19
static/playground.js:19: // these checks also suggest we have addEventListener
On 2012年09月16日 06:05:40, adg wrote:
> why not check also? it's shorter than the comment and will always be correct
Done.
https://codereview.appspot.com/6498135/diff/8001/static/playground.js#newcode20
static/playground.js:20: if (window.history && window.history.pushState &&
!!opts['enableHistory']) {
On 2012年09月16日 06:05:40, adg wrote:
> put this if statement after the two function declarations that it references.
Done.
https://codereview.appspot.com/6498135/diff/8001/static/playground.js#newcode20
static/playground.js:20: if (window.history && window.history.pushState &&
!!opts['enableHistory']) {
On 2012年09月16日 06:05:40, adg wrote:
> is the !! necessary?
Done.
https://codereview.appspot.com/6498135/diff/8001/static/playground.js#newcode27
static/playground.js:27: function inputChanged() {
On 2012年09月16日 06:05:40, adg wrote:
> Please make this function also hide shareEl, so that the user doesn't keep
> seeing an out-of-date share url.
Done.
https://codereview.appspot.com/6498135/diff/8001/static/playground.js#newcode41
static/playground.js:41: setBody(e.state.code);
On 2012年09月16日 06:05:40, adg wrote:
> also this should be below setBody. I know js let's you call declarations that
> haven't been made yet, but the results can be surprising. let's keep it in
order
> please
Done.
Sign in to reply to this message.
sanjay.m
Hello golang-dev@googlegroups.com, adg@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 4 months ago (2012年09月16日 06:51:07 UTC) #5
Sign in to reply to this message.
sanjay.m
This is off-topic, but there's a call to insertTabs with 2 arguments. Looks like a ...
13 years, 4 months ago (2012年09月16日 06:54:59 UTC) #6
This is off-topic, but there's a call to insertTabs with 2 arguments. Looks 
like a typo to me. I can fix this while I'm here if it is.
Sanjay
Sign in to reply to this message.
adg
LGTM https://codereview.appspot.com/6498135/diff/12002/static/playground.js File static/playground.js (right): https://codereview.appspot.com/6498135/diff/12002/static/playground.js#newcode47 static/playground.js:47: insertTabs(tabs, 1); yep, this is a bug. i ...
13 years, 3 months ago (2012年09月17日 17:04:45 UTC) #7
LGTM
https://codereview.appspot.com/6498135/diff/12002/static/playground.js
File static/playground.js (right):
https://codereview.appspot.com/6498135/diff/12002/static/playground.js#newcode47
static/playground.js:47: insertTabs(tabs, 1);
yep, this is a bug. i will fix in a followup cl
Sign in to reply to this message.
adg
*** Submitted as http://code.google.com/p/go-playground/source/detail?r=037317d4acb3 *** playground: use HTML5 History on share, to update URL in ...
13 years, 3 months ago (2012年09月17日 17:05:04 UTC) #8
*** Submitted as
http://code.google.com/p/go-playground/source/detail?r=037317d4acb3 ***
playground: use HTML5 History on share, to update URL in browser UI
R=golang-dev, adg
CC=golang-dev
http://codereview.appspot.com/6498135
Committer: Andrew Gerrand <adg@golang.org>
Sign in to reply to this message.
|
This is Rietveld f62528b

AltStyle によって変換されたページ (->オリジナル) /