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

Unified Diff: sky/specs/apis.md

Issue 687353002: Specs: Expose the currently running script so that you can do Polymer-style magic (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/specs/apis.md
diff --git a/sky/specs/apis.md b/sky/specs/apis.md
index 7db8e4c9660e2c197d829ee2e0742392a9dd49d9..a335a5eaec9c1b51b6b1cfd645e18fc67c5b469d 100644
--- a/sky/specs/apis.md
+++ b/sky/specs/apis.md
@@ -174,6 +174,7 @@ module 'sky:core' {
// MODULES
abstract interface AbstractModule : EventTarget {
Promise<any> import(String url); // O(Yikes) // returns the module's exports
+ ScriptElement? currentScript; // O(1) // returns the <script> element currently being executed if any, else null
}
interface Module : AbstractModule {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698