Comparing version 0.3.0 to 0.3.1
{ | ||
"name": "bemer", | ||
"description": "Template engine. BEMJSON to HTML processor.", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "ignore": [ |
@@ -0,17 +1,25 @@ | ||
/*global document */ | ||
(function() { | ||
var counter = 0; | ||
var numbered; | ||
var source = document.getElementsByClassName('prettyprint source'); | ||
var source = document.getElementsByClassName('prettyprint source linenums'); | ||
var i = 0; | ||
var lineNumber = 0; | ||
var lineId; | ||
var lines; | ||
var totalLines; | ||
var anchorHash; | ||
if (source && source[0]) { | ||
source = source[0].getElementsByTagName('code')[0]; | ||
anchorHash = document.location.hash.substring(1); | ||
lines = source[0].getElementsByTagName('li'); | ||
totalLines = lines.length; | ||
numbered = source.innerHTML.split('\n'); | ||
numbered = numbered.map(function(item) { | ||
counter++; | ||
return '<span id="line' + counter + '" class="line"></span>' + item; | ||
}); | ||
source.innerHTML = numbered.join('\n'); | ||
for (; i < totalLines; i++) { | ||
lineNumber++; | ||
lineId = 'line' + lineNumber; | ||
lines[i].id = lineId; | ||
if (lineId === anchorHash) { | ||
lines[i].className += ' selected'; | ||
} | ||
} | ||
} | ||
})(); |
@@ -110,8 +110,8 @@ definer('Selector', /** @exports Selector */ function() { | ||
return { | ||
block: this._block = block.object, | ||
modName: this._modName = block.modName, | ||
modVal: this._modVal = block.modVal, | ||
elem: this._elem = elem.object, | ||
elemModName: this._elemModName = elem.modName, | ||
elemModVal: this._elemModVal = elem.modVal | ||
block: this._block || (this._block = block.object), | ||
modName: this._modName || (this._modName = block.modName), | ||
modVal: this._modVal || (this._modVal = block.modVal), | ||
elem: this._elem || (this._elem = elem.object), | ||
elemModName: this._elemModName || (this._elemModName = elem.modName), | ||
elemModVal: this._elemModVal || (this._elemModVal = elem.modVal) | ||
}; | ||
@@ -118,0 +118,0 @@ }, |
{ | ||
"name": "bemer", | ||
"description": "Template engine. BEMJSON to HTML processor.", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"repository": { | ||
@@ -20,3 +20,3 @@ "type": "git", | ||
"git-hooks": "~0.0.6", | ||
"jsdoc": "~3.2.2", | ||
"jsdoc": "v3.3.0-alpha8", | ||
"chai": "~1.8.1", | ||
@@ -23,0 +23,0 @@ "jscs": "~1.2.4", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
5519
660247
75