• typedef

definition steal.definition

 

Determines the value of the module.

Type Definition: {function(moduleValue)}

Parameters

  1. moduleValue {*}Optional

    The moduleIdReference's module's values are passed as arguments to the callback definition function. For example:

    steal('jquery','can', function($, can){
      var template = can.view.mustahe("{{greet}}")
      $(document.body)
        .html(template({greet: "Hi"}))
    })
    

    Module's that do not have a value (such as CSS) simply provide an undefined argument as their moduleValue. For example:

    steal('jquery','foo.less', function($, foo, can){
      foo //-> undefined
    })
    

Returns

{*}

The value of the module. If a value is return, that value is used as the value of the module.

Use