mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
added jquery bind version for ie
This commit is contained in:
parent
f78a0b8954
commit
49ba9879f2
3 changed files with 9 additions and 4 deletions
|
|
@ -137,8 +137,9 @@ CloudClient.Utils = (function(){
|
|||
$.ajax(pParams);
|
||||
};
|
||||
|
||||
this.bind = function(pFunction, pObject){
|
||||
return pFunction.bind(pObject);
|
||||
/* setting function context (this) */
|
||||
this.bind = function(pFunction, pContext){
|
||||
return pFunction.bind(pContext);
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -2,15 +2,20 @@
|
|||
var CloudCommander;
|
||||
|
||||
(function(){
|
||||
/* setting head ie6 - ie8 */
|
||||
document.head = document.getElementsByTagName("head")[0];
|
||||
|
||||
document.getElementsByClassName = function(pClassName){
|
||||
return window.jQuery('.'+pClassName)[0];
|
||||
};
|
||||
|
||||
/* setting head ie6 - ie8 */
|
||||
var lUtil = CloudCommander.Util;
|
||||
|
||||
/* setting function context (this) */
|
||||
lUtil.bind = function(pFunction, pContext){
|
||||
return jQuery.proxy(pFunction, pContext);
|
||||
};
|
||||
|
||||
lUtil.getByClass = function(pClass, pElement){
|
||||
var lClass = '.' + pClass;
|
||||
var lResult;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
var CloudCommander;
|
||||
var CloudFunc;
|
||||
|
||||
/* Key constants*/
|
||||
CloudCommander.KEY = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue