1 /**************************************************************************** 2 Copyright (c) 2011-2012 cocos2d-x.org 3 Copyright (c) 2013-2014 Chukong Technologies Inc. 4 5 http://www.cocos2d-x.org 6 7 Permission is hereby granted, free of charge, to any person obtaining a copy 8 of this software and associated documentation files (the "Software"), to deal 9 in the Software without restriction, including without limitation the rights 10 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 copies of the Software, and to permit persons to whom the Software is 12 furnished to do so, subject to the following conditions: 13 14 The above copyright notice and this permission notice shall be included in 15 all copies or substantial portions of the Software. 16 17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 THE SOFTWARE. 24 ****************************************************************************/ 25 26 /** 27 * The namespace of Cocos UI 28 * @namespace 29 * @name ccui 30 */ 31 var ccui = ccui || {}; 32 33 //These classes defines are use for jsDoc 34 /** 35 * The same as cc.Class 36 * @class 37 */ 38 ccui.Class = ccui.Class || cc.Class; 39 ccui.Class.extend = ccui.Class.extend || cc.Class.extend; 40 41 /** 42 * that same as cc.Node 43 * @class 44 * @extends ccui.Class 45 */ 46 ccui.Node = ccui.Node || cc.Node; 47 ccui.Node.extend = ccui.Node.extend || cc.Node.extend; 48 49 50 /** 51 * that same as cc.Node 52 * @class 53 * @extends ccui.Node 54 */ 55 ccui.ProtectedNode = ccui.ProtectedNode || cc.ProtectedNode; 56 ccui.ProtectedNode.extend = ccui.ProtectedNode.extend || cc.ProtectedNode.extend; 57 58 /** 59 * Cocos UI version 60 * @type {String} 61 */ 62 ccui.cocosGUIVersion = "CocosGUI v1.0.0.0";