Changeset 982


Ignore:
Timestamp:
11/26/08 21:12:24 (3 years ago)
Author:
ArthurClemens
Message:

Item116: rebrand javascript classes: remove never used function

Location:
trunk/core
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/data/TestCases/TestCaseTWikiJavascripts.txt

    r981 r982  
    642642</script> 
    643643 
    644 ---++ twiki.Function 
    645 <script language="javascript" src="%PUBURL%/%SYSTEMWEB%/JavascriptFiles/twikiFunction.js"></script> 
    646  
    647 ---+++ twiki.Function.extendClass 
    648 <script language="javascript"> 
    649 /*<![CDATA[*/ 
    650     function testExtendClassWithValidArgs() { 
    651         var conversation = ""; 
    652         var expectedConversation = "poohgrmmpfgarfieldmew"; 
    653          
    654         function Animal (inName) { 
    655                 this.name = inName; 
    656         } 
    657         Animal.prototype.yell = "..."; 
    658         Animal.prototype.talk = function () { 
    659                         conversation += this.name + this.yell; 
    660         } 
    661         function Grizzly () {} 
    662         Grizzly = twiki.Function.extendClass(Grizzly, Animal); 
    663         Grizzly.prototype.yell = "grmmpf"; 
    664         var pooh = new Grizzly("pooh"); 
    665         pooh.talk(); 
    666          
    667         function Cat () {} 
    668         Cat = twiki.Function.extendClass(Cat, Animal); 
    669         Cat.prototype.yell = "mew"; 
    670         var garfield = new Cat("garfield"); 
    671         garfield.talk(); 
    672         assertEquals("Conversation result", expectedConversation, conversation); 
    673     } 
    674 /*]]>*/ 
    675 </script> 
    676  
    677644 
    678645---++ twiki.Pref 
  • trunk/core/pub/System/JavascriptFiles/foswiki.js

    r981 r982  
    99foswikiEvent.js 
    1010foswikiForm.js 
    11 twikiFunction.js 
    1211twikiHTML.js 
    1312twikiPref.js 
Note: See TracChangeset for help on using the changeset viewer.