mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
Merge pull request #2373 from webzwo0i/avoid-global-vairables
dont make local variables global
This commit is contained in:
commit
cfa3f15f94
11 changed files with 14 additions and 14 deletions
|
@ -263,7 +263,7 @@ exports.getText = function(padID, rev, callback)
|
|||
{
|
||||
if(ERR(err, callback)) return;
|
||||
|
||||
data = {text: atext.text};
|
||||
var data = {text: atext.text};
|
||||
|
||||
callback(null, data);
|
||||
})
|
||||
|
@ -368,7 +368,7 @@ exports.getHTML = function(padID, rev, callback)
|
|||
if(ERR(err, callback)) return;
|
||||
html = "<!DOCTYPE HTML><html><body>" +html; // adds HTML head
|
||||
html += "</body></html>";
|
||||
data = {html: html};
|
||||
var data = {html: html};
|
||||
callback(null, data);
|
||||
});
|
||||
}
|
||||
|
@ -380,7 +380,7 @@ exports.getHTML = function(padID, rev, callback)
|
|||
if(ERR(err, callback)) return;
|
||||
html = "<!DOCTYPE HTML><html><body>" +html; // adds HTML head
|
||||
html += "</body></html>";
|
||||
data = {html: html};
|
||||
var data = {html: html};
|
||||
callback(null, data);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue