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

Commit

Permalink
Strip down package:js to the bare bones of the annotations needed for…
Browse files Browse the repository at this point in the history
… interop.
  • Loading branch information
jacob314 committed Jun 30, 2015
1 parent 1a0248e commit 584dd0e
Show file tree
Hide file tree
Showing 56 changed files with 22 additions and 4,903 deletions.
12 changes: 0 additions & 12 deletions bin/new_proxies.dart

This file was deleted.

28 changes: 0 additions & 28 deletions lib/initializer.dart

This file was deleted.

11 changes: 0 additions & 11 deletions lib/interop.js

This file was deleted.

27 changes: 21 additions & 6 deletions lib/js.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,24 @@
*/
library js;

// js.dart is just an alias for mirrors.dart at runtime. The transformer
// replaces this import of js.dart with src/static.dart.
export 'package:js/src/mirrors.dart';
export 'package:js/src/js_expando.dart' show JsExpando;
export 'package:js/src/js_list.dart' show JsList;
export 'package:js/src/js_map.dart' show JsMap;
/// A metadata annotation that marks an enum as a set of values.
const jsEnum = const _JsEnum();
class _JsEnum {
const _JsEnum();
}

/// A metadata annotation that allows to customize the name used for method call
/// or attribute access on the javascript side.
///
/// You can use it on libraries, classes, members.
class JsName {
final String name;
const JsName(this.name);
}

/// A metadata annotation used to indicate that the Js object is a anonymous js
/// object. That is it is created with `new Object()`.
const anonymous = const _Anonymous();
class _Anonymous {
const _Anonymous();
}
22 changes: 0 additions & 22 deletions lib/proxy_creator.dart

This file was deleted.

175 changes: 0 additions & 175 deletions lib/src/js_elements.dart

This file was deleted.

41 changes: 0 additions & 41 deletions lib/src/js_expando.dart

This file was deleted.

Loading

0 comments on commit 584dd0e

Please sign in to comment.