Sha256: b758f6be38545399306810c25177dbeca5b8a6dd9683e6878954cf3e2decabaf

Contents?: true

Size: 368 Bytes

Versions: 1

Compression:

Stored size: 368 Bytes

Contents

(@Ultimate ||= {}).Backbone ||= {}

class Ultimate.Backbone.Model extends Backbone.Model

  ready: (callback, context = @) ->
    if _.isEmpty(@attributes)
      @readyDeferred ||= $.Deferred()
      @readyDeferred.done =>
        callback.apply context, [@]
      @fetch success: (=> @readyDeferred.resolve()), silent: true
    else
      callback.apply context, [@]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ultimate-base-0.2.2 app/assets/javascripts/ultimate/backbone/model.js.coffee