Sha256: 950ddf480b295504530273e78bce1e651c290473d784a57765cb1b0c3c824ab1

Contents?: true

Size: 526 Bytes

Versions: 18

Compression:

Stored size: 526 Bytes

Contents

# ===========================================================================
# Project:   Abbot - SproutCore Build Tools
# Copyright: ©2009 Apple Inc.
#            portions copyright @2006-2009 Sprout Systems, 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

18 entries across 18 versions & 1 rubygems

Version Path
sproutcore-1.4.4-java lib/sproutcore/helpers/dom_id_helper.rb
sproutcore-1.4.4 lib/sproutcore/helpers/dom_id_helper.rb
sproutcore-1.4.3.1 lib/sproutcore/helpers/dom_id_helper.rb
sproutcore-1.4.3-java lib/sproutcore/helpers/dom_id_helper.rb
sproutcore-1.4.3 lib/sproutcore/helpers/dom_id_helper.rb
sproutcore-1.4.2-java lib/sproutcore/helpers/dom_id_helper.rb
sproutcore-1.4.2 lib/sproutcore/helpers/dom_id_helper.rb
sproutcore-1.4.1-java lib/sproutcore/helpers/dom_id_helper.rb
sproutcore-1.4.1 lib/sproutcore/helpers/dom_id_helper.rb
sproutcore-1.4.0-java lib/sproutcore/helpers/dom_id_helper.rb
sproutcore-1.4.0 lib/sproutcore/helpers/dom_id_helper.rb
sproutcore-1.4.0.rc.5 lib/sproutcore/helpers/dom_id_helper.rb
sproutcore-1.4.0.rc.4 lib/sproutcore/helpers/dom_id_helper.rb
sproutcore-1.4.0.rc.3 lib/sproutcore/helpers/dom_id_helper.rb
sproutcore-1.4.0.rc.2 lib/sproutcore/helpers/dom_id_helper.rb
sproutcore-1.4.0.rc lib/sproutcore/helpers/dom_id_helper.rb
sproutcore-1.0.1049.pre.2 lib/sproutcore/helpers/dom_id_helper.rb
sproutcore-1.0.1049.pre.1 lib/sproutcore/helpers/dom_id_helper.rb