Ryan Gonzalez
2017-08-28 16:40:19 UTC
This is literally all I want to do:
@JS('window')
external dynamic window;
except not actually using the window object, but something else.
Except, of course, that code *doesn't work*. Other things I've tried:
@JS('window')
external dynamic window();
and then trying getProperty(window, 'property_here'), except I can't
find the proper property.
I ended up giving up and just doing:
@JS('eval')
external dynamic eval(String expr);
dynamic window = eval('window');
which isn't striking me as very elegant...
What should I do?
--
Ryan (ライアン)
Yoko Shimomura, ryo (supercell/EGOIST), Hiroyuki Sawano >> everyone else
http://refi64.com/
@JS('window')
external dynamic window;
except not actually using the window object, but something else.
Except, of course, that code *doesn't work*. Other things I've tried:
@JS('window')
external dynamic window();
and then trying getProperty(window, 'property_here'), except I can't
find the proper property.
I ended up giving up and just doing:
@JS('eval')
external dynamic eval(String expr);
dynamic window = eval('window');
which isn't striking me as very elegant...
What should I do?
--
Ryan (ライアン)
Yoko Shimomura, ryo (supercell/EGOIST), Hiroyuki Sawano >> everyone else
http://refi64.com/
--
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.
For other discussions, see https://groups.google.com/a/dartlang.org/
For HOWTO questions, visit http://stackoverflow.com/tags/dart
To file a bug report or feature request, go to http://www.dartbug.com/new
---
You received this message because you are subscribed to the Google Groups "Dart Misc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to misc+***@dartlang.org.