From fd6d42444cf80c9a4512286030ab57bd2c205b05 Mon Sep 17 00:00:00 2001 From: Joseph Dykstra Date: Fri, 6 Mar 2015 09:16:32 -0600 Subject: [PATCH] Forgot to return the result of factory() --- src/Ractive-decorators-sortable.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Ractive-decorators-sortable.js b/src/Ractive-decorators-sortable.js index b7d5f25..c33d120 100644 --- a/src/Ractive-decorators-sortable.js +++ b/src/Ractive-decorators-sortable.js @@ -64,7 +64,7 @@ var sortableDecorator = (function ( global, factory ) { // Common JS (i.e. browserify) environment if ( typeof module !== 'undefined' && module.exports && typeof require === 'function' ) { - factory( require( 'Ractive' ) ); + return factory( require( 'Ractive' ) ); } // AMD? @@ -199,10 +199,10 @@ var sortableDecorator = (function ( global, factory ) { Ractive.decorators.sortable = sortable; - return sortable + return sortable; })); // Common JS (i.e. browserify) environment if ( typeof module !== 'undefined' && module.exports) { - module.exports = sortableDecorator + module.exports = sortableDecorator; }