Skip to content

Commit

Permalink
Merge pull request #165 from devoncarew/devoncarew_breaking_change
Browse files Browse the repository at this point in the history
fix to support a change in transformers
  • Loading branch information
devoncarew committed Apr 14, 2014
2 parents 5a2b01a + a8a0ead commit c54c11e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions lib/transformer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ class ChromeTransformer extends Transformer {

ChromeTransformer.asPlugin();

Future<bool> isPrimary(Asset input) {
return new Future.value(input.id.extension == '.html');
// TODO: Remove the [assetOrId] hack.
Future<bool> isPrimary(assetOrId) {
AssetId id = assetOrId is Asset ? assetOrId.id : assetOrId;
return new Future.value(id.extension == '.html');
}

Future apply(Transform transform) {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: chrome
version: 0.5.5-dev
version: 0.5.5
environment:
sdk: ">=1.0.0 <2.0.0"
authors:
Expand Down

0 comments on commit c54c11e

Please sign in to comment.