Skip to content

Commit

Permalink
fixed #11
Browse files Browse the repository at this point in the history
  • Loading branch information
yanni4night committed Jul 30, 2016
1 parent 263847b commit 25314b9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class PantoStream extends EventEmitter {
}
});

defineFrozenProperty(this, '_cacheable', (transformer ? (transformer.cacheable ? transformer.cacheable() : true) :
defineFrozenProperty(this, '_cacheable', (transformer ? (transformer.isCacheable ? transformer.isCacheable() : true) :
false));
defineFrozenProperty(this, '_children', []);
defineFrozenProperty(this, '_transformer', transformer);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "panto-stream",
"version": "0.7.2",
"version": "0.7.3",
"description": "Stream for panto",
"main": "index.js",
"directories": {
Expand Down
4 changes: 2 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('stream', () => {
invoked += 1;
return super._transform(file);
}
cacheable() {
isCacheable() {
return true;
}
}
Expand All @@ -50,7 +50,7 @@ describe('stream', () => {
invoked += 1;
return super._transform(file);
}
cacheable() {
isCacheable() {
return false;
}
}
Expand Down

0 comments on commit 25314b9

Please sign in to comment.