Permalink
Browse files

Some changes to coolaj86's script for node

  • Loading branch information...
1 parent dc6ca77 commit ce9b249f5a7a25bc31f3389233782b4376224d2e @fabiomcosta fabiomcosta committed Jan 17, 2011
Showing with 10 additions and 10 deletions.
  1. +10 −10 Source/slick.js
View
@@ -1,10 +1,10 @@
-module.exports = { Slick: (function () {
- var Parser = require("slick/Slick.Parser").Slick,
- Finder = require("slick/Slick.Finder").Slick;
-
- Object.keys(Parser).forEach(function (key) {
- Finder[key] = Parser[key];
- });
- return Finder;
- }())
-};
+exports.Slick = (function () {
+ var Parser = require('./Slick.Parser').Slick,
+ Finder = require('./Slick.Finder').Slick;
+
+ for (key in Parser){
+ Finder[key] = Parser[key];
+ }
+
+ return Finder;
+}());

0 comments on commit ce9b249

Please sign in to comment.