apostrophe-schemas
Advanced tools
Comparing version 0.5.2 to 0.5.3
10
index.js
@@ -141,6 +141,3 @@ var async = require('async'); | ||
area: function(data, name, snippet, field) { | ||
if (!snippet.areas) { | ||
snippet.areas = {}; | ||
} | ||
snippet.areas[name] = self._apos.textToArea(data[name]); | ||
snippet[name] = self._apos.textToArea(data[name]); | ||
}, | ||
@@ -203,6 +200,3 @@ string: function(data, name, snippet, field) { | ||
self._apos.sanitizeItems(content); | ||
if (!snippet.areas) { | ||
snippet.areas = {}; | ||
} | ||
snippet.areas[name] = { items: content }; | ||
snippet[name] = { items: content, type: 'area' }; | ||
}; | ||
@@ -209,0 +203,0 @@ |
{ | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"name": "apostrophe-schemas", | ||
@@ -33,2 +33,2 @@ "description": "Schemas for easy editing of properties in Apostrophe objects", | ||
} | ||
} | ||
} |
@@ -280,6 +280,6 @@ function AposSchemas() { | ||
area: function(data, name, $field, $el, field, callback) { | ||
return self.enableArea($el, name, data.areas ? data.areas[name] : null, field.options || {}, callback); | ||
return self.enableArea($el, name, data[name], field.options || {}, callback); | ||
}, | ||
singleton: function(data, name, $field, $el, field, callback) { | ||
return self.enableSingleton($el, name, data.areas ? data.areas[name] : null, field.widgetType, field.options || {}, callback); | ||
return self.enableSingleton($el, name, data[name], field.widgetType, field.options || {}, callback); | ||
}, | ||
@@ -286,0 +286,0 @@ string: function(data, name, $field, $el, field, callback) { |
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
70785
878