| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- var _FW = {
- fCreateClass : function() {
- return function() {
- this.fInitialize.apply(this, arguments);
- };
- }
- };
- /**
- * bind函数
- * @author: https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Function/bind
- */
- if (!Function.prototype.bind) {
- Function.prototype.bind = function (oThis) {
- if (typeof this !== "function") {
- // closest thing possible to the ECMAScript 5 internal IsCallable function
- throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");
- }
-
- var aArgs = Array.prototype.slice.call(arguments, 1),
- fToBind = this,
- fNOP = function () {},
- fBound = function () {
- return fToBind.apply(this instanceof fNOP && oThis
- ? this
- : oThis,
- aArgs.concat(Array.prototype.slice.call(arguments)));
- };
-
- fNOP.prototype = this.prototype;
- fBound.prototype = new fNOP();
-
- return fBound;
- };
- }
- $(function(){
- if("V1" === FW_JS_VERSION){
- _FW.oFtl = {
- fnGetForm : GetForm,
- fnAlert : FWalert,
- fnLoadScript : loadScript,
- fnGetListData : getListData,
- fnShowTable : FWshowTable,
- fnInitObject : FWinitObject,
- fnMouseDownToResize : FWMouseDownToResize,
- fnMouseMoveToResize : FWMouseMoveToResize,
- fnMouseUpToResize : FWMouseUpToResize,
- fnResizeFWObj : FWresizeObject
- }
- }else if("V2" === FW_JS_VERSION){
- _FW.oFtl = {
- fnGetForm : CFW.oGt.fnGetForm.bind(CFW.oGt),
- fnAlert : CFW.oWin.fnAlert.bind(CFW.oWin),
- fnLoadScript : CFW.oComm.fnLoadScript.bind(CFW.oComm),
- fnGetListData : CFW.oGlt.fnGetData.bind(CFW.oGlt),
- fnShowTable : CFW.oGt._fnShowTable.bind(CFW.oGt),
- fnInitObject : CFW.oGt._fnInitObject.bind(CFW.oGt),
- fnMouseDownToResize : CFW.oGlt._fnMouseDownToResize.bind(CFW.oGlt),
- fnMouseMoveToResize : CFW.oGlt._fnMouseMoveToResize.bind(CFW.oGlt),
- fnMouseUpToResize : CFW.oGlt._fnMouseUpToResize.bind(CFW.oGlt),
- fnResizeFWObj : CFW.oGt.fnResizeFWObj.bind(CFW.oGt)
- }
- }
- });
|