Re: Element и Behavior
От: c-smile Канада http://terrainformatica.com
Дата: 16.04.11 21:59
Оценка:
Здравствуйте, Antik, Вы писали:

A>sciter и tiscript


instanceof вестимо.

<html>
  <head>
    <title></title>
    <style>
    
      button#test { prototype: Concrete; }
    
    </style>
    <script type="text/tiscript">
    
    class Base: Behavior
    {
    }
    class Concrete: Base
    {
      function onClick()
      {
        stdout.println(this instanceof Concrete ? "is a Concrete": ""); 
        stdout.println(this instanceof Base ? "is a Base": ""); 
        stdout.println(this instanceof Element ? "is an Element": ""); 
        stdout.println(this instanceof Object ? "is an Object": "not an Object"); 
      }
    }
    </script>
  </head>
<body>

  <button #test>Test</button>

</body>
</html>
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.