BUGFIX: applied patch from #4381. Observable doesnt play nice with jQuery (manual jsparty merge from r90857) (from r92571)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@93542 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2009-11-26 02:51:42 +00:00 committed by Sam Minnee
parent 1507151799
commit 2093c7641c
1 changed files with 1 additions and 0 deletions

View File

@ -584,6 +584,7 @@ Observable.prototype = {
throw("Observeable.stopObserving: couldn't find '" + observerCode + "'");
},
notify : function(event, arg) {
if(typeof(jQuery) != 'undefined' && typeof(jQuery.livequery) != 'undefined') jQuery(this).trigger(event, arg);
var i, returnVal = true;
if(this.observers && this.observers[event]) {
for(i=0;i<this.observers[event].length;i++) {