ng-current
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -35,3 +35,3 @@ ;(function(angular) { | ||
service.constructor.prototype = this.constructor.prototype | ||
service.$$hasContext = true | ||
@@ -56,3 +56,3 @@ $rootScope.current[name] = {} | ||
if (generator instanceof Function) { | ||
generator().then(function(data) { | ||
generator.call(service).then(function(data) { | ||
andThen( | ||
@@ -84,3 +84,3 @@ data instanceof Array ? data.map(service.model) : service.model(data) | ||
// method is subscribed and refreshed w/ future updates to the service | ||
if (service.constructor.prototype === this.constructor.prototype) { | ||
if (service.$$hasContext) { | ||
service.refresh(method, andThen) | ||
@@ -87,0 +87,0 @@ |
{ | ||
"name": "ng-current", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Relational context manager for Angular", | ||
@@ -5,0 +5,0 @@ "main": "ng-current.js", |
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
26564