jeff-jangular
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -12,5 +12,6 @@ /* | ||
patternPrefix = /^(x\-|data\-)/g, patternDelimit = /[_:]/g, patternPluralize = /\{\}/g, | ||
patternRepeatStmt = /^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?\s*$/, | ||
JNG_STRIP_DIRECTIVES = '__jng_strip_directives__'; | ||
patternRepeatStmt = /^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?\s*$/; | ||
Jeff.JNG_STRIP_DIRECTIVES = '__jng_strip_directives__'; | ||
function setAttribute(attr) { | ||
@@ -263,3 +264,4 @@ return function(e, val) { | ||
break; | ||
} else if ( currentModel[JNG_STRIP_DIRECTIVES] === true && e.attributes.hasOwnProperty(attr) ) { | ||
} else if ( currentModel[Jeff.JNG_STRIP_DIRECTIVES] === true && e.attributes.hasOwnProperty(attr) ) { | ||
console.log('under ui-view, need to strip ' + attr); | ||
delete(e.attributes[attr]); | ||
@@ -277,7 +279,7 @@ } | ||
else if (e.children) { | ||
currentModel[JNG_STRIP_DIRECTIVES] = needsStripping; | ||
currentModel[Jeff.JNG_STRIP_DIRECTIVES] = needsStripping; | ||
for( i = 0, len = e.children.length; i < len; i++ ) { | ||
e.children[i] = angularizeNode(e.children[i]); | ||
} | ||
currentModel[JNG_STRIP_DIRECTIVES] = false; | ||
currentModel[Jeff.JNG_STRIP_DIRECTIVES] = false; | ||
} | ||
@@ -332,4 +334,6 @@ return e; | ||
e.attributes = e.attributes || {}; | ||
if ( model[JNG_STRIP_DIRECTIVES] !== true ) { | ||
if ( model[Jeff.JNG_STRIP_DIRECTIVES] !== true ) { | ||
e.attributes[name] = null; | ||
} else { | ||
console.log('under ui-view, stripping custom directive ' + name); | ||
} | ||
@@ -336,0 +340,0 @@ return e.toString(); // if we don't evaluate now, not all vars will be in scope |
{ | ||
"name": "jeff-jangular", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"main": "lib/jangular.js", | ||
@@ -47,4 +47,3 @@ "description": "A plugin for jeff.js that allows you to render pages from server-side jeff templates that contain angular syntax.", | ||
"dependencies": { | ||
"jeff-core": "^0.1.12", | ||
"path": "^0.4.9" | ||
"jeff-core": "^0.1.12" | ||
}, | ||
@@ -51,0 +50,0 @@ "scripts": { |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
89798
1
75
751
7
- Removedpath@^0.4.9
- Removedpath@0.4.10(transitive)