![JAR search and dependency download from the Maven repository](/logo.png)
ap.org.eclipse.rap.rwt.4.1.0.source-code.rwt.js Maven / Gradle / Ivy
/*******************************************************************************
* Copyright (c) 2004, 2014 1&1 Internet AG, Germany, http://www.1und1.de,
* EclipseSource and others.
* 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:
* 1&1 Internet AG and others - original API and implementation
* EclipseSource - adaptation for the Eclipse Remote Application Platform
******************************************************************************/
/*global rwt:true, namespace:true*/
/*jshint unused: false*/
rwt = {
define: function( name, object ) {
var splits = name.split( "." );
var parent = window;
var part = splits[ 0 ];
for( var i = 0, len = splits.length - 1; i < len; i++, part = splits[ i ] ) {
if( !parent[ part ] ) {
parent = parent[ part ] = {};
} else {
parent = parent[ part ];
}
}
if( !( part in parent ) ) {
parent[ part ] = object || {};
}
return part;
}
};
// TODO [rst] Use rwt.define instead of namespace
var namespace = rwt.define;
© 2015 - 2025 Weber Informatics LLC | Privacy Policy