From fe84e85928096225e3c5530ba3b504f067df5fa5 Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Tue, 22 Jan 2013 20:42:38 +0100 Subject: [PATCH] =?UTF-8?q?jQuery=20wird=20jetzt=20=C3=BCber=20ein=20npm-P?= =?UTF-8?q?aket=20reingezogen,=20damit=20es=20nicht=20jedes=20mal=20runter?= =?UTF-8?q?geladen=20werden=20muss.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- event.js | 7 ++++--- package.json | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/event.js b/event.js index 9464352..60c4712 100644 --- a/event.js +++ b/event.js @@ -19,7 +19,8 @@ var ,mustache = require('mustache') ,strftime = require('strftime') ,fs = require('fs') - ,glob = require('glob'); + ,glob = require('glob') + ,jq = require('jquery'); function nextDay(x){ var now = new Date(); @@ -150,9 +151,9 @@ EventTool.prototype.parseData = function() { var self = this.req.EventTool; jsdom.env( self.RequestData, - ["http://code.jquery.com/jquery.js"], function (errors, window) { - var wiki_text = window.$("#wiki__text").val(); + var $ = jq.create(window); + var wiki_text = $("#wiki__text").val(); var re = /\s\* (\d{4})\-(\d{2})\-(\d{2}) (\d{2})\:(\d{2}) - (\d{2})\:(\d{2}) (.*)/g; var match = null; self.events = []; diff --git a/package.json b/package.json index fc25d12..d20ccb1 100644 --- a/package.json +++ b/package.json @@ -8,5 +8,6 @@ , "nodemailer": "latest" , "strftime": "latest" , "glob": "latest" + , "jquery": "latest" } }