Sha256: 9b36075980d9c852305619067d46ef7b138a3523e5c8f9e602f6b6e20d42b849

Contents?: true

Size: 334 Bytes

Versions: 4

Compression:

Stored size: 334 Bytes

Contents

require 'native'

unless defined?(JQUERY_CLASS)
  case
  when $$[:jQuery]
    JQUERY_CLASS = JQUERY_SELECTOR = $$[:jQuery]
  when $$[:Zepto]  then
    JQUERY_SELECTOR = $$[:Zepto]
    JQUERY_CLASS = $$[:Zepto][:zepto][:Z]
  else
    raise NameError, 'Can\'t find jQuery or Zepto. jQuery must be included before opal-jquery'
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
opal-jquery-0.4.0 lib/opal/jquery/constants.rb
opal-jquery-0.3.0 lib/opal/jquery/constants.rb
opal-jquery-0.3.0.beta2 lib/opal/jquery/constants.rb
opal-jquery-0.3.0.beta1 opal/opal-jquery/constants.rb