Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FoxLANWeb : the magic fox lives on both LAN and Web!
Message
De
04/11/2010 05:25:44
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
01466562
Message ID:
01488149
Vues:
117
Perfectly right!

As any frameWork, Prototype does nothing more than wrapping native complexity into an handy interface.
  // prototype.js
  function bind(context) {
    if (arguments.length < 2 && Object.isUndefined(arguments[0])) return this;
    var __method = this, args = slice.call(arguments, 1);
    return function() {
      var a = merge(args, arguments);
      return __method.apply(context, a);
    }
  }
>Uhm, nothing in .bind() that doesn't already exist in JavaScript: The .call() and .apply() methods allow you to call a function in the context of the object passed. I don't see how that's different than what .bind() does.
>
>http://odetocode.com/Blogs/scott/archive/2007/07/05/function-apply-and-function-call-in-javascript.aspx
>
>Closure context swapping is an integral part of a functional language like JavaScript...
>
>+++ Rick ---
Thierry Nivelet
FoxinCloud
Give your VFP application a second life, web-based, in YOUR cloud
http://foxincloud.com/
Never explain, never complain (Queen Elizabeth II)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform