Changeset 6558
- Timestamp:
- 04/24/07 03:58:34 (1 year ago)
- Files:
-
- spinoffs/prototype/trunk/CHANGELOG (modified) (1 diff)
- spinoffs/prototype/trunk/src/ajax.js (modified) (1 diff)
- spinoffs/prototype/trunk/test/unit/ajax.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
spinoffs/prototype/trunk/CHANGELOG
r6557 r6558 1 1 *SVN* 2 3 * Add support for per-request onCreate callbacks to Ajax.Request. Closes #8011. [Andrew Dupont] 2 4 3 5 * Don't call evalResponse() when an Ajax response has no Content-type header. Closes #7827. [Tobie Langel] spinoffs/prototype/trunk/src/ajax.js
r6557 r6558 102 102 103 103 try { 104 if (this.options.onCreate) this.options.onCreate(this.transport); 104 105 Ajax.Responders.dispatch('onCreate', this, this.transport); 105 106 spinoffs/prototype/trunk/test/unit/ajax.html
r5992 r6558 166 166 } 167 167 }); 168 }}, 169 170 testOnCreateCallback: function() {with(this) { 171 new Ajax.Request("fixtures/content.html", { 172 asynchronous: false, 173 onCreate: function(transport) { assertEqual(0, transport.readyState) }, 174 onComplete: function(transport) { assertNotEqual(0, transport.readyState) } 175 }); 168 176 }} 169 177