From f1f9dfddb9e3958dcbdc47aea789c5e1448fb68c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Tue, 26 Nov 2013 14:10:16 +0100 Subject: [PATCH 1/1] smartxml: linting --- src/smartxml/smartxml.js | 3 ++- src/smartxml/smartxml.test.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/smartxml/smartxml.js b/src/smartxml/smartxml.js index 5004863..9f060e8 100644 --- a/src/smartxml/smartxml.js +++ b/src/smartxml/smartxml.js @@ -6,7 +6,7 @@ define([ ], function($, _, Backbone, events) { 'use strict'; - +/* globals Node */ var TEXT_NODE = Node.TEXT_NODE; @@ -437,6 +437,7 @@ $.extend(Document.prototype, Backbone.Events, { createDocumentNode: function(from) { if(!(from instanceof Node)) { if(from.text !== undefined) { + /* globals document */ from = document.createTextNode(from.text); } else { var node = $('<' + from.tagName + '>'); diff --git a/src/smartxml/smartxml.test.js b/src/smartxml/smartxml.test.js index 289b982..a4ceaa4 100644 --- a/src/smartxml/smartxml.test.js +++ b/src/smartxml/smartxml.test.js @@ -6,7 +6,7 @@ define([ 'use strict'; /*jshint expr:true */ -/* global describe, it, beforeEach */ +/* global describe, it, beforeEach, Node, DOMParser */ var expect = chai.expect; -- 2.20.1