-
19 Oct 2011 10:13 PM #1
[PR1] Newlines break XTemplate.from
[PR1] Newlines break XTemplate.from
A feature I loved in Sencha 1.1 was creating templates from HTML nodes:
This does work when I, for example, have the following HTML node:Code:tpl: Ext.XTemplate.from('myTemplate', { method: function() });
However, when using newlines in the template, things go wrong:Code:<textarea id="myTemplate" class="x-hidden-display"><p>Name: {name}</p></textarea>
This results in an uncaught SyntaxError:Code:<textarea id="myTemplate" class="x-hidden-display"> <p>Name: {name}</p> </textarea>
Code:Uncaught SyntaxError: Unexpected token ILLEGAL Ext.define.compilesencha-touch-all-debug-w-comments.js:22237 Ext.define.applyOutsencha-touch-all-debug-w-comments.js:22804 Ext.define.applysencha-touch-all-debug-w-comments.js:22792 Ext.define.overwritesencha-touch-all-debug-w-comments.js:22205 Ext.define.updateDatasencha-touch-all-debug-w-comments.js:51379 ExtClass.registerPreprocessor.Ext.Object.each.data.(anonymous function)sencha-touch-all-debug-w-comments.js:5381
-
31 Oct 2011 10:34 AM #2Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,651
- Vote Rating
- 14
Thank you for the report.
-
19 Jan 2012 11:35 AM #3Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,651
- Vote Rating
- 14
This has been fixed for the next release.
Success! Looks like we've fixed this one. According to our records the fix was applied for
TOUCH-918
in
2.0.


Reply With Quote