Skip to content

Commit

Permalink
2.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
RocksonZeta committed Oct 17, 2014
1 parent 654ef5b commit 5e74dbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ exports.object = function(object,throwable,methods,prefix,ctx) {

exports.class = function(constructor,throwable,methods,prefix) {
throwable = ('undefined' == typeof throwable ? true:throwable);
console.log('throwable' , throwable);
function _class(prototypeObject,throwable,methods,prefix){
if(!prototypeObject){
return;
Expand All @@ -52,7 +51,7 @@ exports.class = function(constructor,throwable,methods,prefix) {
Object.keys(prototypeObject).forEach(function(i){
var target ;
try{
target = constructor.prototype[i]; //accessing property in prototype will trigger a error!
target = prototypeObject[i]; //accessing property in prototype will trigger a error!
}catch(e){
return ;
}
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": "cofy",
"version": "2.0.0",
"version": "2.0.2",
"description": "Cofy is a bridge connecting callback style object to sequential style in co environment with one punch.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 5e74dbb

Please sign in to comment.