LoginSignup
5
4

More than 5 years have passed since last update.

自分で定義したBackbone.jsのクラスを拡張する

Last updated at Posted at 2012-03-16

自分で定義したクラスを拡張する&親クラスのイニシャライザを呼びたいときは以下のようにします.

var childClass = parentClass.extend({
    initialize: function() {
        parentClass.prototype.initialize.apply(this, arguments);
        // ...
    },
});

コメントを受けて修正

5
4
3

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
4