Results 1 to 4 of 4

Thread: Problems in Production mode

  1. #1
    Sencha User
    Join Date
    Dec 2010
    Posts
    81
    Vote Rating
    0
      0  

    Default Problems in Production mode

    Hi,

    In My application I have a file bootstrap and in this file I have written global functions and included this file in app.json as well but when I compiled my project into production I get Uncaught ReferenceError: get_data is not defined,get_data is a function written in bootstrap file, I am not sure why it is not picking up functions written in that file, it works fine in normal mode. Any type of help is appreciated.

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,029
    Answers
    3976
    Vote Rating
    1367
      0  

    Default

    I wouldn't use global functions. I would place them in a utility method that you can require and access anywhere.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Dec 2010
    Posts
    81
    Vote Rating
    0
      0  

    Default what should I do

    what should I do If I wanted to use global functions ?

  4. #4

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •