Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Advertising

advertising

related pastes to tag 'event'

1680367 - back event propagation: javascript back event mojo webos
  1. // I have a webview filling the screen and want to associate the back gesture with browsing back in the history, unless we cannot go back
  2. // in which case the event should bubble.
  3.  
  4. // in app/assistants/Guide-assistant.js
  5. // this.canGoBack is true when the webview can go back, and is being set properly (I have triple checked)
  6.  
  7. GuideAssistant.prototype.handleCommand = function(event) {
  8.     Mojo.Log.info('[GuideAssistant.handleCommand] event.type = ', event.type, ', event.command = ', event.command);
  9.  
1665331 - Example using check password: event statusnet checkpassword
  1. function ReverseNicknameAsPassword($nickname, $password, &$user)
  2. {
  3.     $match = User::staticGet('nickname', $nickname);
  4.                
  5.     if (!empty($match) && strrev($nickname) == $password) {
  6.         $user = $match;
  7.     } else {
  8.         $user = null;
  9.  
1592507 - add custom JS to StatusNet: javascript hook event js statusnet endshowscripts
  1. // This function can have any name
  2.  
  3. function AddMyScript($action)
  4. {
  5.     // $action->script('path') puts in a script link
  6.  
  7.     // I recommend putting custom code in the local directory
  8.     // like this
  9.  
719923 - MeanMachine: system daphne scripted event stillwell
  1. Index: ScriptMgr.cpp
  2. ===================================================================
  3. --- ScriptMgr.cpp       (revision 136)
  4. +++ ScriptMgr.cpp       (working copy)
  5. @@ -393,6 +393,7 @@
  6.  //Wailing caverns
  7.  //Western plaguelands
  8.  //Westfall
  9.  
worth-right