search for: removeobserver

Displaying 5 results from an estimated 5 matches for "removeobserver".

2006 Feb 01
1
Sortable onUpdate problem
...all of the draggables and droppables with all the same options. My function and it''s various attempt statements is below. Any ideas? Thanks, Peter function homogenize(element, options){ element=$(element); Sortable.findElements($(element), options).each(function(k){ Draggables.removeObserver($(k)); Draggables.unregister($(k)); Draggables.deactivate(k); new Draggable(k,options); Droppables.remove($(k)); Droppables.add(k, options); }); } // homogenize
2009 Aug 26
5
Noob DRY method question
Hi Gurus, I''m learning the Rails framework, and I have this exact block of html/javascript in two places in an if/else construct in application.html.erb: <body onload="Modalbox.show(''<div class=\''warning\''> <p> <center> <%= flash[ :notice ] %> </center> </p> <p> <center> <input
2007 Apr 27
0
Prototype Popup Error
...occur: 1 - the popup is transparent and does not contain the text it is supposed to 2 - when the popup closes I get the following javascript error in Firefox 1.5.0.11 Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIObserverService.removeObserver]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: chrome://browser/content/browser.js :: BrowserShutdown :: line 869" data: no] Works fine in IE 6 and Opera Any guidance on what is happening will be appreciated. Thanks! --~--~---------~--~----~-----...
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...ag(event); this.activeDraggable = null; }, - + keyPress: function(event) { if(this.activeDraggable) this.activeDraggable.keyPress(event); }, - + addObserver: function(observer) { this.observers.push(observer); this._cacheObserverCallbacks(); }, - + removeObserver: function(element) { // element instead of observer fixes mem leaks this.observers = this.observers.reject( function(o) { return o.element==element }); this._cacheObserverCallbacks(); }, - + notify: function(eventName, draggable, event) { // 'onStart', 'onEnd', &...
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply to this email, as some of the replaced lines are too long, so git won't let me send the email. However, there is nothing wrong with that patch, and it should be applied in the sequence listed below. Note also that I assume this will be tested on a clean f11 install, rather than an upgrade of an existing ovirt server