From: Aleksander Ɓukasz Date: Tue, 26 Nov 2013 13:10:16 +0000 (+0100) Subject: smartxml: linting X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/f1f9dfddb9e3958dcbdc47aea789c5e1448fb68c?ds=sidebyside;hp=f0b728185fbc463f932a0329c1fcb1602101c206 smartxml: linting --- 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;