My App works fine in development mode but I get an error when I build the production file.
Here is my simple test code:
Here is my simple test code:
- steal( 'can/control/control.js', 'can/view/view.js', 'can/view/ejs/ejs.js', 'can/view/modifiers/modifiers.js'
- ).then(
- 'amo/tester/tester.ejs',
- function() {
- var AmoTester = can.Control("Amo.Tester", {
- defaults: {
- latestData: false,
- theThings: {
- 'germany': {
- 'ref': "deutschland",
- 'lang': "deutsch",
- 'header': "Hello here!"
- },
- 'us': {
- 'ref': "usa",
- 'lang': "english",
- 'header': "Hello there!"
- }
- },
- appStatus: false
- }
- },
- {
- init: function( element , options ) {
- this.oneEl = $('#oneDiv');
- this.renderTest();
- },
- renderTest: function() {
- this.oneEl.html('amo/tester/tester.ejs', {
- theThings: this.options.theThings
- });
- }
- });
- var amoTester2 = new Amo.Tester( $('#oneDiv') );
- });
My template is very simple:
I think I am using the latest of everything.
- <%= this.theThings.germany.ref %>
- Opening amo/tester/tester.html
- !!!!!!!!!!! ERROR !!!!!!!!!!!
- -message = Cannot find function createDocumentFragment in object [object Object].
- -fileName = file:///F:/......./amo-project/can/lib/jquery.1.8.3.js
- -lineNumber = 6162
- -name = TypeError
I think I am using the latest of everything.