Changeset 1169 for trunk


Ignore:
Timestamp:
02/18/09 11:56:57 (10 years ago)
Author:
ray
Message:

#1392 too much recursion when setting HTML in fullPage mode using onGenerate/onGenerateOnce

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XinhaCore.js

    r1167 r1169  
    38733873  if ( plugin && typeof plugin.onGenerateOnce == "function" ) 
    38743874  { 
    3875     plugin.onGenerateOnce(); 
    3876     plugin.onGenerateOnce = null; 
     3875    //#1392: in fullpage mode this function is called recusively by setFullHTML() when it is used to set the editor content 
     3876        // this is a temporary fix, that should better be handled by a better implemetation of setFullHTML 
     3877        plugin._ongenerateOnce = plugin.onGenerateOnce; 
     3878    delete(plugin.onGenerateOnce); 
     3879        plugin._ongenerateOnce(); 
     3880        delete(plugin._ongenerateOnce); 
    38773881  } 
    38783882}; 
Note: See TracChangeset for help on using the changeset viewer.