Sha256: f0875d33db1662e4686afe5a6851eab5600f7a549e81f97d0b8a56c8e21cea90

Contents?: true

Size: 517 Bytes

Versions: 47

Compression:

Stored size: 517 Bytes

Contents

# ===========================================================================
# Project:   Abbot - SproutCore Build Tools
# Copyright: ©2009 Apple Inc.
#            portions copyright @2006-2011 Strobe Inc.
#            and contributors
# ===========================================================================

module SC
  module Helpers

    module DomIdHelper
      @@tick = 0

      def dom_id!(type="id")
        @@tick += 1
        return "#{type}_#{(Time.now.to_i + @@tick)}"
      end
    end

  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
sproutcore-1.11.0 lib/sproutcore/helpers/dom_id_helper.rb
sproutcore-1.11.0.rc3 lib/sproutcore/helpers/dom_id_helper.rb
sproutcore-1.11.0.rc2 lib/sproutcore/helpers/dom_id_helper.rb
sproutcore-1.11.0.rc1 lib/sproutcore/helpers/dom_id_helper.rb
sproutcore-1.10.3.1 lib/sproutcore/helpers/dom_id_helper.rb
sproutcore-1.10.2 lib/sproutcore/helpers/dom_id_helper.rb
sproutcore-1.10.1 lib/sproutcore/helpers/dom_id_helper.rb
sproutcore-1.10.0 lib/sproutcore/helpers/dom_id_helper.rb
sproutcore-1.10.0.rc.3 lib/sproutcore/helpers/dom_id_helper.rb
sproutcore-1.10.0.rc.2 lib/sproutcore/helpers/dom_id_helper.rb
sproutcore-1.10.0.rc.1 lib/sproutcore/helpers/dom_id_helper.rb
sproutcore-1.9.2 lib/sproutcore/helpers/dom_id_helper.rb
sproutcore-1.9.1 lib/sproutcore/helpers/dom_id_helper.rb
sproutcore-1.9.0 lib/sproutcore/helpers/dom_id_helper.rb
sproutcore-1.8.2.1 lib/sproutcore/helpers/dom_id_helper.rb
sproutcore-1.8.1 lib/sproutcore/helpers/dom_id_helper.rb
sproutcore-1.8.0 lib/sproutcore/helpers/dom_id_helper.rb
sproutcore-1.7.1.beta-java lib/sproutcore/helpers/dom_id_helper.rb
sproutcore-1.7.1.beta lib/sproutcore/helpers/dom_id_helper.rb
sproutcore-1.6.0.1-java lib/sproutcore/helpers/dom_id_helper.rb