[Pkg-javascript-commits] [dojo] 82/88: Remove incorrect method call. Fixes #17048. !strict due to strict mode Backport to 1.8

David Prévot taffit at moszumanska.debian.org
Thu Aug 21 17:39:41 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag 1.8.5
in repository dojo.

commit eac6ae4e895c9389e6892834c16a0aa086f84028
Author: Colin Snover <github.com at zetafleet.com>
Date:   Fri Apr 19 23:14:13 2013 +0000

    Remove incorrect method call. Fixes #17048. !strict due to strict mode
    Backport to 1.8
    
    
    git-svn-id: http://svn.dojotoolkit.org/src/branches/1.8/dojo@31309 560b804f-0ae3-0310-86f3-f6aa0a117693
---
 aspect.js       |  1 -
 tests/aspect.js | 29 +++++++++++++++++++++++++++++
 2 files changed, 29 insertions(+), 1 deletion(-)

diff --git a/aspect.js b/aspect.js
index 1f19291..391f166 100644
--- a/aspect.js
+++ b/aspect.js
@@ -16,7 +16,6 @@ define([], function(){
 			signal = {
 				remove: function(){
 					if(advised){
-						advised.remove();
 						advised = dispatcher = advice = null;
 					}
 				},
diff --git a/tests/aspect.js b/tests/aspect.js
index 9f50f04..f4b7fcf 100644
--- a/tests/aspect.js
+++ b/tests/aspect.js
@@ -116,6 +116,35 @@ doh.register("tests.aspect",
 			obj.method(4);
 			t.is(order, [0,1,2,3,4,5,6]);
 		},
+		function around2(t){
+			var order = [];
+			var obj = {
+				method: function(a){
+					order.push(1);
+				}
+			};
+			var signal1 = aspect.around(obj, "method", function(original){
+				return function(a){
+					original();
+					order.push(2);
+				};
+			});
+			var signal2 = aspect.around(obj, "method", function(original){
+				return function(a){
+					original();
+					order.push(3);
+				};
+			});
+			var signal3 = aspect.around(obj, "method", function(original){
+				return function(a){
+					original();
+					order.push(4);
+				};
+			});
+			signal2.remove();
+			obj.method();
+			t.is(order, [1,2,4]);
+		},
 		function multipleRemove(t){
 			var foo = {bar: function(){}};
 			var order = [];

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/dojo.git



More information about the Pkg-javascript-commits mailing list