From a4e2af35996896240356ad8ca4c7b6003d4b9ff3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Mon, 7 Oct 2013 14:12:11 +0200 Subject: [PATCH] linting --- src/wlxml/wlxml.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/wlxml/wlxml.js b/src/wlxml/wlxml.js index 1995a8b..10a79ed 100644 --- a/src/wlxml/wlxml.js +++ b/src/wlxml/wlxml.js @@ -24,16 +24,18 @@ $.extend(WLXMLElementNode.prototype, smartxml.ElementNode.prototype, { getMetaAttributes: function() { var toret = {}; this.getAttrs().forEach(function(attr) { - if(isMetaAttribute(attr.name)) + if(isMetaAttribute(attr.name)) { toret[attr.name.substr(5)] = attr.value; + } }); return toret; }, getOtherAttributes: function() { var toret = {}; this.getAttrs().forEach(function(attr) { - if(attr.name != 'class' && !isMetaAttribute(attr.name)) + if(attr.name !== 'class' && !isMetaAttribute(attr.name)) { toret[attr.name] = attr.value; + } }); return toret; } -- 2.20.1