8000 GitHub - gaaamii/bb_with_amd: Backbone.jsがAMD形式でjQueryとUnderscoreを読み込む様子
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

gaaamii/bb_with_amd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

AMD形式でBackboneを読み込み

Backbone.jsのソースコードを読んでいたら、こんな記述があった。

if (typeof define === 'function' && define.amd) {
  define(['underscore', 'jquery', 'exports'], function(_, $, exports) {
    // Export global even in AMD case in case this script is loaded with
    // others that may still expect a global Backbone.
    root.Backbone = factory(root, exports, _, $);
  });
} 

このコードを利用できるのか確かめただけなのがこのリポジトリ。

About

Backbone.jsがAMD形式でjQueryとUnderscoreを読み込む様子

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0