Method: Element#get_script

Defined in:
lib/wedge/utilis/element.rb

#get_script(url, &block) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/wedge/utilis/element.rb', line 9

def get_script url, &block
  %x{
    $.getScript(url, function(){
      #{block.call if block_given?}
    });
  }
end