Closed can-cc closed 9 years ago
What is the difference?
The latter is used when not using requirejs. You can read up on the readme (the options section).
and how to import the latter object?
It's gets simply imported in the page by a script tag.
Is this issue okay to close? It's more like a question than a bug/request anyways.
Yup, thanks for keeping up with these old issues :D.
Sometimes generate this: define([ 'jquery', 'underscore', 'backbone', 'templates' ], function ($, _, Backbone, JST) { 'use strict'; ………… ……
and sometimes generate this:
App.Views = App.Views || {};
(function () { 'use strict';
What is the difference? and how to import the latter object?