Sha256: 22021019fe6693ef605669a6d0ceda0c21a29962fa2baf04afcf3882f0142cf1

Contents?: true

Size: 366 Bytes

Versions: 1

Compression:

Stored size: 366 Bytes

Contents

angular.module('EssayApp.directives').directive "uniform", ['$timeout', ($timeout) ->
  restrict: 'A'
  scope: true
  require: "?ngModel"
  link: (scope, element, attrs, ngModel) ->
    fn = () ->
      ngModel.$modelValue

    scope.$watch(fn, () ->
      $timeout($.uniform.update, 0)
    )

    $timeout (->
      element.uniform()
      return
    ), 0, false

]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
translation_cms-0.1.5 app/assets/javascripts/app/directives/uniform.js.coffee