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

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@92571 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2009-11-21 02:33:51 +00:00
parent 483ed4d0f2
commit f6c487444d

View File

@ -588,6 +588,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++) {