0

我的浏览器有问题,该应用程序在另一个浏览器上正常工作,但在 Internet Explorer 8 和 7 中有问题

SCRIPT438:对象不支持此属性或方法 jquery.js?body=1, linha 612 Caractere 4

globalEval: function( data ) {
if ( data && rnotwhite.test( data ) ) {
    // We use execScript on Internet Explorer
    // We use an anonymous function so that context is window
    // rather than jQuery in Firefox
    ( window.execScript || function( data ) {
        window[ "eval" ].call( window, data );
    } )( data );
}
},

我的应用程序使用 Rails 3.2.13

我的观点的一个例子

Webapp.MenuView = Ember.View.extend
 templateName: 'menu'
 classNames: ['invisible']
 # tagName: 'form'

 toggleMenu: ->
  if lefty = $("#menu_roll")
   lefty.show().animate
    display: "block"
    left: (if parseInt(lefty.css("left"), 10) is 0 then -lefty.outerWidth() else 0)
    right: (if parseInt(lefty.css("right"), 10) is 0 then lefty.outerWidth() else 0)

 voltarMap: ->
  console.log "voltar para o mapa"
  Webapp.addr.resetOpcionais() if Webapp.addr
  @get("controller").transitionToRoute "MapEmEspera"

 voltar: ->
  if window.location.hash is "#/forgot_password" or window.location.hash is    "#/cadastrar"
  window.location = window.location.origin + "/welcome"
else
  @get("controller").transitionToRoute "MapEmEspera"

terms: ->
 window.open(window.location.origin + "/terms")
 # window.location = window.location + "/terms"

display: (c) ->
 @toggleMenu()
 @get("controller").transitionToRoute c

logout : ->
 Webapp.alert("Tem certeza que deseja sair da WayTaxi?", ->
    Webapp.shutdown()
  , ->
    $('#alert').hide()
  )    
4

0 回答 0