Skip to content

Commit

Permalink
🔧
Browse files Browse the repository at this point in the history
  • Loading branch information
kobezzza committed Aug 8, 2016
1 parent 62b9d24 commit 8192442
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/live/live.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,15 +346,7 @@ Snakeskin.forIn = function (obj, callback) {
* @return {!Function}
*/
Snakeskin.decorate = function (decorators, fn) {
Snakeskin.forEach(decorators, (decorator) => {
const
res = decorator(fn);

if (isFunction(res)) {
fn = res;
}
});

Snakeskin.forEach(decorators, (decorator) => fn = decorator(fn) || fn);
fn.decorators = decorators;
return fn;
};

0 comments on commit 8192442

Please sign in to comment.