Permalink
Browse files

return plugin function upon registering it

  • Loading branch information...
1 parent 0e2a2bb commit 09620759ff712ca3428c4e78ed8676299c3d0d03 @olov committed May 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/shaper.js
View
@@ -689,7 +689,7 @@ var Shaper = (function() {
// register shapes and run pipeline
var shapes = {};
function shaper(name, fn) {
- shapes[name] = fn;
+ return shapes[name] = fn;
}
function get(name) {
return shapes[name];

0 comments on commit 0962075

Please sign in to comment.