(X) Hide this
    • Login
    • Join
      • Generate New Image
        By clicking 'Register' you accept the terms of use .

Self Executing model is key of creating namespace in WinJS

(0 votes)
0 comments   /   posted by Silverlight Show on Dec 19, 2012
Tags:   windows-8 , windows-store , winjs , dhananjay-kumar

Read original post by Dhananjay Kumar at Debug Mode

Let us first try to understand, why we need Namespace? I will try to explain you with an example, let us suppose you have a function named GreetingMessage in JS file named Library.js

image 

Now you need to use this function on default.js. When you try to call that function from other js file , you get following exception.

Comments

No comments

Add Comment

Login to comment:
  *      *       

Our News on Twitter


Latest News

  • Daily News Digest 3/22/2013
  • 10 Tips for designing your mobile APIs
  • Q&A on Files, Streams, Buffers, and Blobs: Part 4: don’t streams and buffers make file I/O complicated?
  • Unit testing async Windows Phone 8 code on the UI thread with VS 2012.2 CTP4