1 /*! 2 * This file is part of Aloha Editor Project http://aloha-editor.org 3 * Copyright (c) 2010-2011 Gentics Software GmbH, aloha@gentics.com 4 * Contributors http://aloha-editor.org/contribution.php 5 * Licensed unter the terms of http://www.aloha-editor.org/license.html 6 * 7 * Aloha Editor is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU Affero General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version.* 11 * 12 * Aloha Editor is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU Affero General Public License for more details. 16 * 17 * You should have received a copy of the GNU Affero General Public License 18 * along with this program. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 21 // define jquery and ext modules. They need to be available in global namespace 22 define('aloha/jquery',[], function() { 23 // Work-around for http://bugs.jquery.com/ticket/9905 24 // and https://github.com/alohaeditor/Aloha-Editor/issues/397 25 if ( !Aloha.jQuery.support.getSetAttribute ) { 26 ( function( global ) { 27 Aloha.jQuery.removeAttr = function( elem, name ) { 28 elem.removeAttribute( name ); 29 }; 30 }( Aloha )); 31 } 32 33 return Aloha.jQuery; 34 }); 35