Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Some changes to coolaj86's script for node

  • Loading branch information...
commit ce9b249f5a7a25bc31f3389233782b4376224d2e 1 parent dc6ca77
@fabiomcosta fabiomcosta authored
Showing with 10 additions and 10 deletions.
  1. +10 −10 Source/slick.js
View
20 Source/slick.js
@@ -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;
+}());
Please sign in to comment.
Something went wrong with that request. Please try again.