Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

Commit

Permalink
Merge pull request #119 from dart-lang/justin-work
Browse files Browse the repository at this point in the history
Add type parameter to Proxy to workaround dart2js bug 14729
  • Loading branch information
justinfagnani committed Nov 4, 2013
2 parents 5b22097 + 24fa1a6 commit 770e847
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions lib/js.dart
Expand Up @@ -125,7 +125,7 @@ List _pruneUndefined(arg1, arg2, arg3, arg4, arg5, arg6) {
* Proxies to JavaScript objects.
*/
@proxy
class Proxy implements Serializable<Proxy> {
class Proxy<T extends Proxy> implements Serializable<T> {
final js.JsObject _jsObject;

Proxy._(this._jsObject);
Expand Down Expand Up @@ -240,8 +240,7 @@ class _CallbackFunction implements Function {
}

/// A [Proxy] subtype to JavaScript functions.
class FunctionProxy extends Proxy
implements Serializable<FunctionProxy>, Function {
class FunctionProxy extends Proxy<FunctionProxy> implements Function {
final js.JsFunction _jsFunction;
final _thisArg;

Expand Down
5 changes: 2 additions & 3 deletions pubspec.yaml
@@ -1,15 +1,14 @@
name: js
version: 0.1.0
version: 0.2.0
authors:
- Dart Team <misc@dartlang.org>
- Alexandre Ardhuin <alexandre.ardhuin@gmail.com>
description: Access JavaScript from Dart.
homepage: https://github.com/dart-lang/js-interop
dependencies:
browser: '>=0.8.7'
meta: '>=0.8.7'
dev_dependencies:
ghpages_generator: '>=0.0.1'
unittest: '>=0.8.7'
environment:
sdk: '>=0.8.7'
sdk: '>0.8.7'

0 comments on commit 770e847

Please sign in to comment.