Results 1 to 2 of 2

Thread: Singleton class for namespace in packages

  1. #1
    Sencha Premium Member volkans80's Avatar
    Join Date
    Mar 2012
    Location
    Ankara, Turkey
    Posts
    90
    Answers
    2

    Default Singleton class for namespace in packages

    Hi,

    How can i create singleton class in my package with the same name of namespace?
    Where should i put singleton class file in package?

    For example i want to use it like below in my app.

    Accessing any class in package:
    var win = Ext.create('Pkg1.view.window.TestWindow');

    Accessing my singleton class with the same name of namespace:
    Pkg1.testMethod();

    like Ext.apply();

    Thanks,

  2. #2
    Sencha Premium Member volkans80's Avatar
    Join Date
    Mar 2012
    Location
    Ankara, Turkey
    Posts
    90
    Answers
    2

    Default

    Any idea?

Similar Threads

  1. is possible extend from singleton class?
    By keepfaith in forum Ext 5: Q&A
    Replies: 3
    Last Post: 11 Sep 2015, 4:30 AM
  2. statics singleton class
    By arvindwill in forum Sencha Touch 2.x: Q&A
    Replies: 5
    Last Post: 20 Nov 2012, 6:22 AM
  3. scope of a singleton class vs static class
    By himanshu.joshi in forum Ext: Discussion
    Replies: 3
    Last Post: 6 Jul 2012, 11:39 PM
  4. Replies: 2
    Last Post: 12 Jan 2012, 12:26 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •