apostrophe-snippets
Advanced tools
Comparing version 0.0.30 to 0.0.31
{ | ||
"name": "apostrophe-snippets", | ||
"version": "0.0.30", | ||
"version": "0.0.31", | ||
"description": "Reusable content snippets for the Apostrophe content management system. The blog and events modules are built on this foundation, which is also useful in and of itself.", | ||
@@ -31,2 +31,2 @@ "main": "index.js", | ||
} | ||
} | ||
} |
@@ -108,2 +108,6 @@ // NOTES FOR REUSE: | ||
self.beforeSave = function($el, data, callback) { | ||
return callback(); | ||
}; | ||
self.enableSingleton = function($el, name, area, type, optionsArg, callback) { | ||
@@ -196,3 +200,2 @@ if (typeof(optionsArg) === 'function') { | ||
function afterAction() { | ||
apos.log('calling beforeSave'); | ||
self.beforeSave($el, data, go); | ||
@@ -199,0 +202,0 @@ } |
@@ -467,2 +467,3 @@ # apostrophe-snippets | ||
``` | ||
self.addingToManager = function($el, $snippet, snippet) { | ||
@@ -474,2 +475,3 @@ $snippet.find('[data-date]').text(snippet.publicationDate); | ||
}; | ||
``` | ||
@@ -476,0 +478,0 @@ ### Pushing our JavaScript and CSS assets to the browser |
134656
1884
673