Guest User

Untitled

a guest
Apr 25th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. function $SL(element)
  2. {
  3. element = $(element);
  4. var method, methods = Proto.Silverlight.Methods;
  5.  
  6. for(var name in methods){
  7. method = methods[name];
  8. if(typeof element[name] != 'function')
  9. element[name] = method.curry(element);
  10. }
  11. return element;
  12. }
  13.  
  14. Proto.Silverlight.Methods = {
  15. getContent: function(element)
  16. {
  17. console.log(arguments);
  18. return element.content;
  19. }
  20. };
  21.  
  22. //////
  23.  
  24. $SL('object_id').getContent();
Add Comment
Please, Sign In to add comment