| OLD | NEW |
| 1 // Copyright 2006 Google Inc. | 1 // Copyright 2006 Google Inc. |
| 2 // | 2 // |
| 3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 // you may not use this file except in compliance with the License. | 4 // you may not use this file except in compliance with the License. |
| 5 // You may obtain a copy of the License at | 5 // You may obtain a copy of the License at |
| 6 // | 6 // |
| 7 // http://www.apache.org/licenses/LICENSE-2.0 | 7 // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 // | 8 // |
| 9 // Unless required by applicable law or agreed to in writing, software | 9 // Unless required by applicable law or agreed to in writing, software |
| 10 // distributed under the License is distributed on an "AS IS" BASIS, | 10 // distributed under the License is distributed on an "AS IS" BASIS, |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 * context of the data object fragment. | 86 * context of the data object fragment. |
| 87 * | 87 * |
| 88 * @param {JsEvalContext} context Context created from the input data | 88 * @param {JsEvalContext} context Context created from the input data |
| 89 * object. | 89 * object. |
| 90 * | 90 * |
| 91 * @param {Element} template DOM node of the template. This will be | 91 * @param {Element} template DOM node of the template. This will be |
| 92 * processed in place. After processing, it will still be a valid | 92 * processed in place. After processing, it will still be a valid |
| 93 * template that, if processed again with the same data, will remain | 93 * template that, if processed again with the same data, will remain |
| 94 * unchanged. | 94 * unchanged. |
| 95 * | 95 * |
| 96 * @param {boolean} opt_debugging Optional flag to collect debugging | 96 * @param {boolean=} opt_debugging Optional flag to collect debugging |
| 97 * information while processing the template. Only takes effect | 97 * information while processing the template. Only takes effect |
| 98 * in MAPS_DEBUG. | 98 * in MAPS_DEBUG. |
| 99 */ | 99 */ |
| 100 function jstProcess(context, template, opt_debugging) { | 100 function jstProcess(context, template, opt_debugging) { |
| 101 var processor = new JstProcessor; | 101 var processor = new JstProcessor; |
| 102 JstProcessor.prepareTemplate_(template); | 102 JstProcessor.prepareTemplate_(template); |
| 103 | 103 |
| 104 /** | 104 /** |
| 105 * Caches the document of the template node, so we don't have to | 105 * Caches the document of the template node, so we don't have to |
| 106 * access it through ownerDocument. | 106 * access it through ownerDocument. |
| (...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 951 | 951 |
| 952 /** | 952 /** |
| 953 * Log the current state. | 953 * Log the current state. |
| 954 * @param {string} caller An identifier for the caller of .log_. | 954 * @param {string} caller An identifier for the caller of .log_. |
| 955 * @param {Element} template The template node being processed. | 955 * @param {Element} template The template node being processed. |
| 956 * @param {Object} jstAttributeValues The jst attributes of the template node. | 956 * @param {Object} jstAttributeValues The jst attributes of the template node. |
| 957 */ | 957 */ |
| 958 JstProcessor.prototype.logState_ = function( | 958 JstProcessor.prototype.logState_ = function( |
| 959 caller, template, jstAttributeValues) { | 959 caller, template, jstAttributeValues) { |
| 960 }; | 960 }; |
| OLD | NEW |