From 6e335dab42e9158406d5733652f02ae2bbb47448 Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Thu, 22 Dec 2011 15:16:24 -0800 Subject: [PATCH] Reorganized locals in JSONp transport. --- lib/transports/polling-jsonp.js | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/lib/transports/polling-jsonp.js b/lib/transports/polling-jsonp.js index 6b2a9965..93aa3a32 100644 --- a/lib/transports/polling-jsonp.js +++ b/lib/transports/polling-jsonp.js @@ -7,18 +7,24 @@ var Transport = require('../transport') , Polling = require('./polling') , util = require('../util') -/** - * Noop. - */ - -function empty () { } - /** * Module exports. */ module.exports = JSONPPolling; +/** + * Cached regular expressions. + */ + +var rNewline = /\n/g + +/** + * Noop. + */ + +function empty () { } + /** * JSONP Polling constructor. *