Created
August 22, 2012 13:53
-
-
Save najamkhn/3425772 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="log"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($, window, undefined) { | |
$(function(){ | |
var log = $('#log'); | |
log.append('text'); | |
}); | |
// -- | |
// Add or remove skills widget for profile page | |
// -- | |
var fn = { | |
init: function(count, command, kwargs){ | |
var skill_list = $('.skill-list-inner'); | |
return function(count, command, kwargs){ | |
this.constructor = function(){ | |
switch(command){ | |
case 'add': | |
this.add(count, kwargs); | |
break; | |
case 'del': | |
this.del(count, kwargs); | |
break; | |
case 'disable': | |
this.disable(count, kwargs); | |
break; | |
default: | |
break; | |
} | |
} | |
this.add = function(){ | |
return false; | |
} | |
this.del = function(){ | |
return false; | |
} | |
this.disable = function(){ | |
return false; | |
} | |
} | |
} | |
} | |
})(jQuery, window); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment