| 1 |
/** |
| 2 |
* |
| 3 |
*/ |
| 4 |
|
| 5 |
/** |
| 6 |
* |
| 7 |
*/ |
| 8 |
(function($) { |
| 9 |
|
| 10 |
/** |
| 11 |
* put your comment there... |
| 12 |
* |
| 13 |
* @type Object |
| 14 |
*/ |
| 15 |
var ACEPluggable = { |
| 16 |
|
| 17 |
/** |
| 18 |
* put your comment there... |
| 19 |
* |
| 20 |
* @type Object |
| 21 |
*/ |
| 22 |
plugins : {}, |
| 23 |
|
| 24 |
/** |
| 25 |
* Create ACE Plugins system. |
| 26 |
* |
| 27 |
* @returns void |
| 28 |
*/ |
| 29 |
init : function() { |
| 30 |
// Couldnt find ace object! |
| 31 |
if (ace == undefined) { |
| 32 |
throw {code : 0x0001, msg: "Error while initializing ACEPluggabel class. ACE is not defined!!\nPlease check your Javascript loading order"}; |
| 33 |
} |
| 34 |
else { // ace found! |
| 35 |
// For now just assign ACEPluggable object reference. |
| 36 |
ace.pluggable = this; |
| 37 |
} |
| 38 |
} |
| 39 |
|
| 40 |
}; // End pluggable prototype. |
| 41 |
|
| 42 |
// Intialize! |
| 43 |
ACEPluggable.init(); |
| 44 |
})(jQuery); |