Saturday, 15 September 2012

angularjs - ng-mousedown handler attaching to ng-mouseup's event -


I use the ng-mousedown and ng-mouseup I'm trying to concert, though ng-mousedown is firing twice and not firing ng-mouseup . For example, instead of moving down the press to increase due to counts , and instead of going down on the press release, there are two reasons:

  & lt; ! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Body ng-app & gt; & Lt; Div & gt; & Lt; Div style = "background-color: blue; width: 80px;" Ng-mousedown = "count = count + 1" ng-mouseup = "count = count - 1" ng-init = "count = 0" & gt; Click me & lt; / Div & gt; & Lt; Div & gt; {{Counts}} & lt; / Div & gt; & Lt; / Div & gt; & Lt; Script src = "http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js" & gt; & Lt; / Script & gt; & Lt; / Body & gt; & Lt; / Html & gt;  

If I change the Conneri version to 1.1.1 then it works as expected whether I am doing something wrong or is it a bug in angular? I've tested in Chrome and Firefox, it works in Firefox, but not Chrome.

Update: After further testing, it appears that it can only fail to work in Chrome on Linux 64. So it's a bug chrome.

I loaded the test file directly in Chrome and found that it works as expected. When I compare it to one loaded through my local webserver, the following line was injected into my HTML:

  

This caused me to doubt the AngularJS tab in Dev Tool. It is important to disable the "Reliable" page:

Battery failed

What is more worrying is the fact that I clearly remember that do not install bells due to almost universal negative reviews. I think I have to add a heap.

Update: It was found that this issue has been reported


No comments:

Post a Comment