Sha256: e850d9d9d1c7e169a5640261df24d070b798d302732b81f32546abf4ff784f5b

Contents?: true

Size: 621 Bytes

Versions: 3

Compression:

Stored size: 621 Bytes

Contents

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

#= require ultimate/base
#= require ultimate/helpers

@Ultimate.Backbone ||=

  debugMode: false

  debug: ->
    if @debugMode
      a = ["info", "Ultimate.Backbone"]
      Array::push.apply a, arguments  if arguments.length > 0
      cout.apply @, a

  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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ultimate-base-0.5.0.0 app/assets/javascripts/ultimate/backbone/base.js.coffee
ultimate-base-0.4.1.0 app/assets/javascripts/ultimate/backbone/base.js.coffee
ultimate-base-0.4.0.1 app/assets/javascripts/ultimate/backbone/base.js.coffee