added jquery bind version for ie

This commit is contained in:
coderaiser 2012-08-22 05:36:36 -04:00
parent f78a0b8954
commit 49ba9879f2
3 changed files with 9 additions and 4 deletions

View file

@ -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);
};
/*

View file

@ -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;

View file

@ -1,5 +1,4 @@
var CloudCommander;
var CloudFunc;
/* Key constants*/
CloudCommander.KEY = {