Sha256: 643da73c487eb0096250fb6bbc8f64d4c6fd8dbcf7aaa02dd57a9f276e68e513

Contents?: true

Size: 567 Bytes

Versions: 3

Compression:

Stored size: 567 Bytes

Contents

#  require:
#    jquery ~> 1.7.0
#    underscore ~> 1.3.0

#= require ../base

Ultimate.Backbone ||=

  ViewMixins: {}

  isView: (view) -> view instanceof Backbone.View

  isViewClass: (viewClass) -> (viewClass::) instanceof Backbone.View

  isModel: (model) -> model instanceof Backbone.Model

  isCollection: (collection) -> collection instanceof Backbone.Collection

  isRouter: (router) -> router instanceof Backbone.Router

#  MixinSupport:
#    include: (mixin) ->
#      unless mixin?
#        throw new Error('Mixin is undefined')
#      _.extend @::, mixin

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ultimate-base-0.7.2 app/assets/javascripts/ultimate/backbone/base.js.coffee
ultimate-base-0.6.2 app/assets/javascripts/ultimate/backbone/base.js.coffee
ultimate-base-0.6.0 app/assets/javascripts/ultimate/backbone/base.js.coffee