1. #1
    Sencha User
    Join Date
    Jun 2011
    Posts
    7
    Answers
    1
    Vote Rating
    0
    Ashims is on a distinguished road

      0  

    Default Answered: Javascript Polluting DOM

    Answered: Javascript Polluting DOM


    Hey Guys,

    I've got a pretty big app constructed around the proper Ext4 MVC way of doing things, and apparently somewhere along the way I've caused Ext to drop a whole raw javascript function into every DOM element on the page .

    The app itself is far too much code to throw up here (without narrowing my search a bit), but I was wondering if anyone could give me any direction as to where this might be occurring (perhaps based on the function thats being dropped in there itself) or how I might go about tracking this bug down. The function isn't actually anything I've written.

    I don't get any errors, and am using Ext 4.0.7 Stable.


    Help? (Lols).

  2. Actually-- don't worry. My fault. Stock function I've added to the Object prototype.

    Cheers.

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,408
    Answers
    3549
    Vote Rating
    851
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Looks like a missing quote
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  4. #3
    Sencha User
    Join Date
    Jun 2011
    Posts
    7
    Answers
    1
    Vote Rating
    0
    Ashims is on a distinguished road

      0  

    Default


    So what functions operate directly on every single DOM element? I don't have any HTML at all-- its all being generated. Also that function isn't mine...

  5. #4
    Sencha User
    Join Date
    Jun 2011
    Posts
    7
    Answers
    1
    Vote Rating
    0
    Ashims is on a distinguished road

      0  

    Default


    Actually-- don't worry. My fault. Stock function I've added to the Object prototype.

    Cheers.

Thread Participants: 1