Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Issue 9226025: New dart.js bootstrap script for apps (Closed)

Created:
8 years, 11 months ago by vsm
Modified:
8 years, 11 months ago
Reviewers:
dgrove, danrubel
CC:
reviews_dartlang.org, sethladd
Visibility:
Public.

Description

New dart.js bootstrap script for apps The primary new add is the dart.js script. All sample html files now point to it, and were tested with Dartium, Chrome, and FireFox. I've checked in compiled JS so the samples 'just work'. They were compiled via frog: frog/minfrog --compile-only --out=client/samples/sunflower/Sunflower.dart.js client/samples/sunflower/Sunflower.dart If you guys prefer, I can take these out. Committed: https://code.google.com/p/dart/source/detail?r=3480

Patch Set 1 #

Total comments: 12

Patch Set 2 : Address comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -0 lines) Patch
A client/dart.js View 1 1 chunk +27 lines, -0 lines 1 comment Download

Messages

Total messages: 6 (0 generated)
vsm
8 years, 11 months ago (2012-01-20 20:44:12 UTC) #1
dgrove
On 2012/01/20 20:44:12, vsm wrote: I'd prefer to not check in the JS here - ...
8 years, 11 months ago (2012-01-20 20:56:52 UTC) #2
dgrove
http://codereview.chromium.org/9226025/diff/1/client/dart.js File client/dart.js (right): http://codereview.chromium.org/9226025/diff/1/client/dart.js#newcode21 client/dart.js:21: document.body.appendChild(script); won't this break scripts that want to look ...
8 years, 11 months ago (2012-01-20 20:57:03 UTC) #3
danrubel
On 2012/01/20 20:56:52, dgrove wrote: > On 2012/01/20 20:44:12, vsm wrote: > > I'd prefer ...
8 years, 11 months ago (2012-01-20 21:20:36 UTC) #4
vsm
PTAL I've dropped the generated JS. I'll modify the sample html files in a separate ...
8 years, 11 months ago (2012-01-20 21:55:27 UTC) #5
dgrove
8 years, 11 months ago (2012-01-20 22:01:13 UTC) #6
assuming the replaceChild madness really works, lgtm!

http://codereview.chromium.org/9226025/diff/3007/client/dart.js
File client/dart.js (right):

http://codereview.chromium.org/9226025/diff/3007/client/dart.js#newcode22
client/dart.js:22: parent.replaceChild(script, scripts[i]);
does this really work? (ie, the script starts executing?) if so, cool!

Powered by Google App Engine
This is Rietveld 408576698