Skip to content

Instantly share code, notes, and snippets.

@najamkhn
Created August 22, 2012 13:53
Show Gist options
  • Save najamkhn/3425772 to your computer and use it in GitHub Desktop.
Save najamkhn/3425772 to your computer and use it in GitHub Desktop.
<div id="log"></div>
(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