apostrophe-schema-widgets
Advanced tools
Comparing version 0.5.16 to 0.5.17
16
index.js
@@ -0,1 +1,3 @@ | ||
/* jshint node:true */ | ||
var _ = require('lodash'); | ||
@@ -78,4 +80,16 @@ | ||
} | ||
if (req.deferredLoads) { | ||
if (!req.deferredLoads[options.name]) { | ||
req.deferredLoads[options.name] = []; | ||
req.deferredLoaders[options.name] = widget.loadNow; | ||
} | ||
req.deferredLoads[options.name].push(item); | ||
return setImmediate(callback); | ||
} | ||
return widget.loadNow(req, [ item ], callback); | ||
}; | ||
widget.loadNow = function(req, items, callback) { | ||
req.aposSchemaWidgetLoading = true; | ||
return self._schemas.join(req, options.schema, item, undefined, function(err) { | ||
return self._schemas.join(req, options.schema, items, undefined, function(err) { | ||
req.aposSchemaWidgetLoading = false; | ||
@@ -82,0 +96,0 @@ return setImmediate(_.partial(callback, err)); |
{ | ||
"name": "apostrophe-schema-widgets", | ||
"version": "0.5.16", | ||
"version": "0.5.17", | ||
"description": "An easy form widget builder for the Apostrophe content management system", | ||
@@ -5,0 +5,0 @@ "main": "index.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
14925
191