Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed global leaks

  • Loading branch information...
commit 32e6c0695dda4b3cdc3fbc696a4aa6b0c91e14a0 1 parent 4aaa939
@camshaft camshaft authored
View
2  lib/natural/phonetics/phonetic.js
@@ -21,7 +21,7 @@ THE SOFTWARE.
*/
var stopwords = require('../util/stopwords');
-var Tokenizer = require('../tokenizers/aggressive_tokenizer')
+var Tokenizer = require('../tokenizers/aggressive_tokenizer'),
tokenizer = new Tokenizer();
module.exports = function() {
View
2  lib/natural/tokenizers/aggressive_tokenizer_fa.js
@@ -24,7 +24,7 @@ THE SOFTWARE.
var Tokenizer = require('./tokenizer'),
util = require('util');
-AggressiveTokenizer = function() {
+var AggressiveTokenizer = function() {
Tokenizer.call(this);
};
util.inherits(AggressiveTokenizer, Tokenizer);
View
4 spec/aggressive_tokenizer_spec.js
@@ -20,8 +20,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-var Tokenizer = require('lib/natural/tokenizers/aggressive_tokenizer')
- tokenizer = new Tokenizer();
+var Tokenizer = require('lib/natural/tokenizers/aggressive_tokenizer'),
+ tokenizer = new Tokenizer();
describe('aggressive_tokenizer', function() {
it('should tokenize strings', function() {

0 comments on commit 32e6c06

Please sign in to comment.
Something went wrong with that request. Please try again.