English 中文(简体)
zombie.js browser.fire not working with Backbone. 活动
原标题:zombie.js browser.fire not working with Backbone.Events

锅炉火法似乎不会引发背后所附的事件处理器。 活动(如点击 anchor杆/布顿)

See this gist for a test case on documentClouds site: https://gist.github.com/1256944

如果你在前往乐团时做的首件事被点击到开放的纽顿,你就会得到警示,但是,在身体要素中,也增加了超时的班子——这是什么。

You can see from the test that when using browser.fire click , that the prompt isn t shown, and the overlay class is not seen.

However, when triggering the click event using jQuery s click() method (via browser.evaluate), then the overlay class is seen...

问题回答

您的主人认为,你应当增加精英财产。 具体说明事件应受到约束的因素。 例如:

dc.ui.Toolbar = Backbone.View.extend({

  id :  toolbar ,

  el : "body",

  events : {
     click #open_viewers  :  _clickOpenViewers ,
     click #size_toggle   :  _toggleSize 
  },

  _clickOpenViewers : function() {
    this.openViewers();
  },

  openViewers : function(checkEdit, suffix, afterLoad) {
    if (!Documents.selectedCount) return dc.ui.Dialog.alert( Please select a document to open. );
    var continuation = function(docs) {
      _.each(docs, function(doc){
        var win = doc.openAppropriateVersion(suffix);
        if (afterLoad) {
          win.DV || (win.DV = {});
          win.DV.afterLoad = afterLoad;
        }
      });
    };
    checkEdit ? this.edit(continuation) : continuation(Documents.selected());
  }

});




相关问题
getGridParam is not a function

The HTML: <a href="javascript:void(0)" id="m1">Get Selected id s</a> The Function: jQuery("#m1").click( function() { var s; s = jQuery("#list4").getGridParam( selarrrow )...

selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

jQuery cycle page with links

I am using the cycle plugin with pager functionality like this : $j( #homebox ) .cycle({ fx: fade , speed: fast , timeout: 9000, pager: #home-thumbs , ...

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

jConfirm with this existing code

I need help to use jConfirm with this existing code (php & Jquery & jAlert). function logout() { if (confirm("Do you really want to logout?")) window.location.href = "logout.php"; } ...

Wrap text after particular symbol with jQuery

What I m trying to do, is wrap text into div inside ll tag. It wouldn t be a problem, but I need to wrap text that appears particularly after "-" (minus) including "minus" itself. This is my html: &...

热门标签