/*
* Ext JS Library 2.0 RC 1
* Copyright(c) 2006-2007, Ext JS, LLC.
* licensing@extjs.com
*
* http://extjs.com/license
*/
Ext = function(){
/// <summary>Ext core utilities and functions.</summary>
/// <returns type="Ext"></returns>
/// <field name="isStrict" type="Boolean">True if the browser is in strict mode</field>
/// <field name="isSecure" type="Boolean">True if the page is running over SSL</field>
/// <field name="isReady" type="Boolean">True when the document is fully initialized and ready for action</field>
/// <field name="enableGarbageCollector" type="Boolean">True to automatically uncache orphaned Ext.Elements periodically (defaults to true)</field>
/// <field name="enableListenerCollection" type="Boolean">
/// True to automatically purge event listeners after uncaching an element (defaults to false).
/// Note: this only happens if enableGarbageCollector is true.
/// </field>
/// <field name="SSL_SECURE_URL" type="String">
/// URL to a blank file used by Ext when in secure mode for iframe src and onReady src to prevent
/// the IE insecure content warning (defaults to javascript:false).
/// </field>
/// <field name="BLANK_IMAGE_URL" type="String">
/// URL to a 1x1 transparent gif image used by Ext to create inline icons with CSS background images. (Defaults to
/// "http://extjs.com/s.gif" and you should change this to a URL on your server).
/// </field>
/// <field name="isOpera" type="Boolean"></field>
/// <field name="isSafari" type="Boolean"></field>
/// <field name="isIE" type="Boolean"></field>
/// <field name="isIE7" type="Boolean"></field>
/// <field name="isGecko" type="Boolean"></field>
/// <field name="isBorderBox" type="Boolean"></field>
/// <field name="isLinux" type="Boolean"></field>
/// <field name="isWindows" type="Boolean"></field>
/// <field name="isMac" type="Boolean"></field>
/// <field name="isAir" type="Boolean"></field>
/// <field name="useShims" type="Boolean">
/// By default, Ext intelligently decides whether floating elements should be shimmed. If you are using flash,
/// you may want to set this to true.
/// </field>
this.version = '2.0-beta1';
}
// for old browsers
window["undefined"] = window["undefined"];
Ext.apply = function(o, c, defaults){
/// <summary>Copies all the properties of config to obj.</summary>
/// <param name="o" type="Object">OBJ The receiver of the properties</param>
/// <param name="c" type="Object">CONFIG The source of the properties</param>
/// <param name="defaults" type="Object">DEFAULTS A different object that will also be applied for default values</param>
/// <returns name="defaults" type="Object">returns obj</returns>
if(defaults){
// no "this" reference for friendly out of scope calls
Ext.apply(o, defaults);
}
if(o && c && typeof c == 'object'){
for(var p in c){
o[p] = c[p];
}
}
return o;
};
(function(){
var idSeed = 0;
var ua = navigator.userAgent.toLowerCase();
var isStrict = document.compatMode == "CSS1Compat",
isOpera = ua.indexOf("opera") > -1,
isSafari = (/webkit|khtml/).test(ua),
isIE = !isOpera && ua.indexOf("msie") > -1,
isIE7 = !isOpera && ua.indexOf("msie 7") > -1,
isGecko = !isSafari && ua.indexOf("gecko") > -1,
isBorderBox = isIE && !isStrict,
isWindows = (ua.indexOf("windows") != -1 || ua.indexOf("win32") != -1),
isMac = (ua.indexOf("macintosh") != -1 || ua.indexOf("mac os x") != -1),
isLinux = (ua.indexOf("linux") != -1),
isSecure = window.location.href.toLowerCase().indexOf("https") === 0;
// remove css image flicker
if(isIE && !isIE7){
try{
document.execCommand("BackgroundImageCache", false, true);
}catch(e){}
}
Ext.apply(Ext, {
/**
* True if the browser is in strict mode
* @type Boolean
*/
isStrict : isStrict,
/**
* True if the page is running over SSL
* @type Boolean
*/
isSecure : isSecure,
/**
* True when the document is fully initialized and ready for action
* @type Boolean
*/
isReady : false,
/**
* True to automatically uncache orphaned Ext.Elements periodically (defaults to true)
* @type Boolean
*/
enableGarbageCollector : true,
/**
* True to automatically purge event listeners after uncaching an element (defaults to false).
* Note: this only happens if enableGarbageCollector is true.
* @type Boolean
*/
enableListenerCollection:false,
/**
* URL to a blank file used by Ext when in secure mode for iframe src and onReady src to prevent
* the IE insecure content warning (defaults to javascript:false).
* @type String
*/
SSL_SECURE_URL : "javascript:false",
/**
* URL to a 1x1 transparent gif image used by Ext to create inline icons with CSS background images. (Defaults to
* "http://extjs.com/s.gif" and you should change this to a URL on your server).
* @type String
*/
BLANK_IMAGE_URL : "http:/"+"/extjs.com/s.gif",
emptyFn : function(){
/// <summary>
/// A reusable empty function
/// @property
/// @type Function
/// </summary>
/// <returns type=""></returns>
},
applyIf : function(obj, config){
/// <summary>Copies all the properties of config to obj if they don't already exist.</summary>
/// <param name="obj" type="Object">The receiver of the properties</param>
/// <param name="config" type="Object">The source of the properties</param>
/// <returns type="Object">returns obj</returns>
if(obj && config){
for(var p in config){
if(typeof obj[p] == "undefined"){ obj[p] = config[p]; }
}
}
return obj;
},
addBehaviors : function(obj){
/// <summary>
/// Applies event listeners to elements by selectors when the document is ready.
/// The event name is specified with an @ suffix.
/// <pre><code>
/// Ext.addBehaviors({
/// // add a listener for click on all anchors in element with id foo
/// '#foo a@click' : function(e, t){
/// // do something
/// },
/// // add the same listener to multiple selectors (separated by comma BEFORE the @)
/// '#foo a, #bar span.some-class@mouseover' : function(){
/// // do something
/// }
/// });
/// </code></pre>
/// </summary>
/// <param name="obj" type="Object">The list of behaviors to apply</param>
/// <returns type=""></returns>
if(!Ext.isReady){
Ext.onReady(function(){
Ext.addBehaviors(obj);
});
return;
}
var cache = {}; // simple cache for applying multiple behaviors to same selector does query multiple times
for(var b in obj){
var parts = b.split('@');
if(parts[1]){ // for Object prototype breakers
var s = parts[0];
if(!cache[s]){
cache[s] = Ext.select(s);
}
cache[s].on(parts[1], obj[b]);
}
}
cache = null;
},
id : function(el, prefix){
vswd-ext_2.0.2.zip_vswd-ext_2.0.2.js_网vswd
版权申诉
65 浏览量
2022-09-19
16:36:18
上传
评论
收藏 186KB ZIP 举报
刘良运
- 粉丝: 66
- 资源: 1万+
最新资源
- 2%EF%BC%9A%E9%99%95%E8%A5%BF%E
- yyspdz62_944.apk
- SAP公司间采购EDI配置-如何触发自动MIRO.docx
- python197基于图像识别的仪表实时监控系统.rar
- I2C驱动SHT30温湿度传感器和LCD12864使用例程(RSCG12864B)
- python193中学地理-中国的江河湖泊教学网(django).rar
- python191基于时间序列分析的大气污染预测软件(django).rar
- python190基于人脸识别智能化小区门禁管理系统.rar
- python189某医院体检挂号系统.rar
- python179的企业物流管理系统(django).rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈