Comparing version 0.1.0 to 0.1.1
@@ -210,2 +210,3 @@ 'use strict'; | ||
* - context: Context on which to call `after`, defaults to pagelet. | ||
* - data: stringified object representation to pass to the client. | ||
* | ||
@@ -226,4 +227,6 @@ * @param {Object} options Add post render functionality. | ||
// Check for the presence of options and provide pagelet as default for context. | ||
// Data will be passed to the client as a stringified representation of an object. | ||
// | ||
options = options || {}; | ||
options.data = options.data || '{}'; | ||
options.context = options.context || pagelet; | ||
@@ -230,0 +233,0 @@ |
{ | ||
"name": "pagelet", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "pagelet", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
22621
429