jeff-jangular
Advanced tools
Comparing version 0.0.22 to 0.0.23
@@ -237,6 +237,5 @@ /* | ||
function getDirectiveScope(model, directiveName, val) { | ||
var directiveNameCamel = dashToCamelCase(directiveName); | ||
function getDirectiveScope(model, attrValue, val) { | ||
model.$watch = function(name, fn) { | ||
if ( name === directiveNameCamel ) { | ||
if ( name === attrValue ) { | ||
fn(val); | ||
@@ -342,3 +341,3 @@ } else { | ||
// getDirectiveElement and getDirectiveAttrs wraps e/attrs, allows methods $observe, $set, etc | ||
angularTransforms[attrNormal](getDirectiveScope(currentModel, attrNormal, evaled), getDirectiveElement(e), | ||
angularTransforms[attrNormal](getDirectiveScope(currentModel, attrValue, evaled), getDirectiveElement(e), | ||
getDirectiveAttrs(e, attrNormal, evaled), evaled); | ||
@@ -345,0 +344,0 @@ } |
{ | ||
"name": "jeff-jangular", | ||
"version": "0.0.22", | ||
"version": "0.0.23", | ||
"main": "lib/jangular.js", | ||
@@ -5,0 +5,0 @@ "description": "A plugin for jeff.js that allows you to render pages from server-side jeff templates that contain angular syntax.", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
93288
835