Support ready event fired when appwidget objects are prepared
authorYunchan Cho <yunchan.cho@samsung.com>
Fri, 31 May 2013 02:18:16 +0000 (11:18 +0900)
committerYunchan Cho <yunchan.cho@samsung.com>
Mon, 3 Jun 2013 11:33:52 +0000 (20:33 +0900)
commit0efcf8c8b96100ff3e904ad4755b1f5e69b3298e
tree03957bd47037982e8cb407bdeabdec2d95042fa8
parent89b93a7a839b4b46e2cd8f16510b231c4df908c1
Support ready event fired when appwidget objects are prepared

[Issue#] N/A
[Problem] somtimes web content of dynamic box can't call appwidget functions
[Cause] appwidget objects are 'undefined' objects befere they are loaded.
        So web contents have to use appwidget objects after they are fully loaded.
[Solution] For this, ready event named as 'appwidgetready' are provided.
           web content of box or pd can trigger this event for knowing the time that objects are fully loaded.
           And for knowing such objects were already loaded, it's possible as checking 'window.appwidget' object is not 'undefined'

Change-Id: I77d66d68b2335b34702add9fa43922775dc55414
src/Core/View/injection.js