Changes between Initial Version and Version 1 of Ticket #12736


Ignore:
Timestamp:
Apr 20, 2011, 2:44:25 PM (10 years ago)
Author:
bill
Comment:

What makes you think this is a bug? There's no reason to execute define's callback unless someone asks for the value, through a require call like:

require(["test"}, ...

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12736

    • Property Cc rawld added
    • Property Status changed from new to closed
    • Property Resolution changed from to invalid
  • Ticket #12736 – Description

    initial v1  
    11If I use define method to load and declare module in inline javascript. The callback is never called. But if I use require(), the callback is successfully called. Here is my test case to reproduce the problem. (Also, if the javascript is externalized to a js file and introduced into HTML by <script> tag, it still does not work.)
    22
     3{{{
    34<!DOCTYPE HTML>
    45<html>
     
    1920        </body>
    2021</html>
     22}}}