Sha256: 0b38106744c223bc6287680300dcfa461e2e7ab2ef3e96ef2a49262b603397a8

Contents?: true

Size: 294 Bytes

Versions: 4

Compression:

Stored size: 294 Bytes

Contents

window.Utils =
  $safeApply: (fn) ->
    phase = this.$root.$$phase;
    if(phase == '$apply' || phase == '$digest')
      fn() if(fn && (typeof(fn) == 'function'))
    else
      this.$apply(fn)

  removeFromArray: (value, array) ->
    index = array.indexOf(value)
    array.splice(index, 1)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fanforce-app-factory-2.0.0.rc5 lib/fanforce/app_factory/asset_framework/app_factory/lib/utils.coffee
fanforce-app-factory-2.0.0.rc4 lib/fanforce/app_factory/asset_framework/app_factory/lib/utils.coffee
fanforce-app-factory-2.0.0.rc2 lib/fanforce/app_factory/asset_framework/app_factory/lib/utils.coffee
fanforce-app-factory-2.0.0.rc1 lib/fanforce/app_factory/asset_framework/app_factory/lib/utils.coffee