| /******************************************************************************* |
| * Copyright (c) 2013 EclipseSource. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * EclipseSource - initial API and implementation |
| ******************************************************************************/ |
| |
| //@ sourceURL=DataBinding.js |
| |
| /////////////////// |
| // Event Delegation |
| |
| var MODEL_KEY = "org.eclipse.rap.addons.autosuggest#Model"; |
| |
| function handleEvent( event ) { |
| var model = rap.getObject( event.widget.getData( MODEL_KEY ) ); |
| var autoSuggestListener |
| = rwt.remote.ObjectRegistry.getObject( model.get( "autoSuggestListenerId" ) ); |
| autoSuggestListener( event ); |
| } |